public interface ConcurrentMetadataStore extends MetadataStore
Modifier and Type | Method and Description |
---|---|
java.lang.String |
putIfAbsent(java.lang.String key,
java.lang.String value)
Atomically insert the key into the store.
|
boolean |
replace(java.lang.String key,
java.lang.String oldValue,
java.lang.String newValue)
Atomically replace the value for the key in the store if the old
value matches the oldValue argument.
|
get, put, remove
java.lang.String putIfAbsent(java.lang.String key, java.lang.String value)
key
- The key.value
- The value.boolean replace(java.lang.String key, java.lang.String oldValue, java.lang.String newValue)
key
- The key.oldValue
- The old value.newValue
- The new value.