Interface ConcurrentMetadataStore

All Superinterfaces:
MetadataStore
All Known Subinterfaces:
ListenableMetadataStore
All Known Implementing Classes:
GemfireMetadataStore, HazelcastMetadataStore, JdbcMetadataStore, MongoDbMetadataStore, PropertiesPersistingMetadataStore, RedisMetadataStore, SimpleMetadataStore, ZookeeperMetadataStore

public interface ConcurrentMetadataStore extends MetadataStore
Supports atomic updates to values in the store.
Since:
4.0
Author:
Gary Russell
  • Method Summary

    Modifier and Type
    Method
    Description
    putIfAbsent(String key, String value)
    Atomically insert the key into the store.
    boolean
    replace(String key, String oldValue, String newValue)
    Atomically replace the value for the key in the store if the old value matches the oldValue argument.

    Methods inherited from interface org.springframework.integration.metadata.MetadataStore

    get, put, remove
  • Method Details

    • putIfAbsent

      String putIfAbsent(String key, String value)
      Atomically insert the key into the store.
      Parameters:
      key - The key.
      value - The value.
      Returns:
      null if successful, the old value otherwise.
    • replace

      boolean replace(String key, String oldValue, String newValue)
      Atomically replace the value for the key in the store if the old value matches the oldValue argument.
      Parameters:
      key - The key.
      oldValue - The old value.
      newValue - The new value.
      Returns:
      true if successful.