Interface ConcurrentMetadataStore

All Superinterfaces:
MetadataStore
All Known Subinterfaces:
ListenableMetadataStore
All Known Implementing Classes:
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 Link icon

    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 Link icon

    get, put, remove
  • Method Details Link icon

    • putIfAbsent Link icon

      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 Link icon

      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.