public class VanillaSubscriptionKeyValueStore<K,MV,V> extends AbstractKeyValueStore<K,MV,V> implements ObjectKeyValueStore<K,MV,V>, AuthenticatedKeyValueStore<K,MV,V>
KeyValueStore.Entry<K,V>asset, keyType, kvStore, valueType| Constructor and Description |
|---|
VanillaSubscriptionKeyValueStore(RequestContext context,
Asset asset,
KeyValueStore<K,MV,V> item) |
| Modifier and Type | Method and Description |
|---|---|
V |
getAndPut(K key,
V value) |
V |
getAndRemove(K key) |
boolean |
put(K key,
V value)
put an entry
|
V |
putIfAbsent(K key,
V value) |
boolean |
remove(K key)
remove a key
|
boolean |
removeIfEqual(K key,
V value) |
V |
replace(K key,
V value) |
boolean |
replaceIfEqual(K key,
V oldValue,
V newValue) |
ObjectKVSSubscription<K,MV,V> |
subscription(boolean createIfAbsent) |
accept, asset, clear, close, containsKey, containsValue, entriesFor, entrySetIterator, get, getUsing, isKeyType, isReadOnly, keyedView, keySetIterator, keysFor, keyType, longSize, segmentFor, segments, underlying, valueTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitkeyType, valueTypeclear, containsKey, containsValue, entriesFor, entrySetIterator, get, getUsing, isKeyType, isReadOnly, keyedView, keySetIterator, keysFor, longSize, segmentFor, segments, valuesIteratorasset, underlyingaccept, andThenpublic VanillaSubscriptionKeyValueStore(@NotNull
RequestContext context,
@NotNull
Asset asset,
@NotNull
KeyValueStore<K,MV,V> item)
@NotNull public ObjectKVSSubscription<K,MV,V> subscription(boolean createIfAbsent)
subscription in interface SubscriptionKeyValueStore<K,MV,V>public V replace(K key, V value)
replace in interface KeyValueStore<K,MV,V>replace in class AbstractKeyValueStore<K,MV,V>public boolean put(K key, V value)
KeyValueStoreput in interface KeyValueStore<K,MV,V>put in class AbstractKeyValueStore<K,MV,V>key - to setvalue - to setpublic boolean remove(K key)
KeyValueStoreremove in interface KeyValueStore<K,MV,V>remove in class AbstractKeyValueStore<K,MV,V>key - to removepublic boolean replaceIfEqual(K key, V oldValue, V newValue)
replaceIfEqual in interface KeyValueStore<K,MV,V>replaceIfEqual in class AbstractKeyValueStore<K,MV,V>public boolean removeIfEqual(K key, V value)
removeIfEqual in interface KeyValueStore<K,MV,V>removeIfEqual in class AbstractKeyValueStore<K,MV,V>@Nullable public V putIfAbsent(K key, V value)
putIfAbsent in interface KeyValueStore<K,MV,V>putIfAbsent in class AbstractKeyValueStore<K,MV,V>@Nullable public V getAndPut(K key, V value)
getAndPut in interface KeyValueStore<K,MV,V>getAndPut in class AbstractKeyValueStore<K,MV,V>@Nullable public V getAndRemove(K key)
getAndRemove in interface KeyValueStore<K,MV,V>getAndRemove in class AbstractKeyValueStore<K,MV,V>Copyright © 2015. All rights reserved.