Interface ConcurrentMetadataStore
- All Superinterfaces:
MetadataStore
- All Known Subinterfaces:
ListenableMetadataStore
- All Known Implementing Classes:
GemfireMetadataStore
,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
Methods inherited from interface org.springframework.integration.metadata.MetadataStore
get, put, remove
-
Method Details
-
putIfAbsent
Atomically insert the key into the store.- Parameters:
key
- The key.value
- The value.- Returns:
- null if successful, the old value otherwise.
-
replace
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.
-