public class ObjectObjectKeyValueStore<K,MV extends V,V> extends Object implements KeyValueStore<K,MV,V>
KeyValueStore.Entry<K,V>| Constructor and Description |
|---|
ObjectObjectKeyValueStore(RequestContext context,
Asset asset,
Assetted assetted) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(EngineReplication.ReplicationEntry replicationEntry) |
Asset |
asset() |
void |
clear() |
void |
close() |
boolean |
containsValue(MV value) |
void |
entriesFor(int segment,
SubscriptionConsumer<MapEvent<K,V>> kvConsumer) |
Iterator<Map.Entry<K,V>> |
entrySetIterator() |
V |
getAndPut(K key,
V value) |
V |
getAndRemove(K key) |
V |
getUsing(K key,
MV value) |
void |
keysFor(int segment,
SubscriptionConsumer<K> kConsumer) |
long |
longSize() |
V |
replace(K key,
V value) |
KeyValueStore |
underlying() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontainsKey, get, isKeyType, isReadOnly, keyedView, keySetIterator, put, putIfAbsent, remove, removeIfEqual, replaceIfEqual, segmentFor, segments, valuesIteratorandThenpublic ObjectObjectKeyValueStore(@NotNull
RequestContext context,
Asset asset,
Assetted assetted)
@Nullable public V getAndRemove(K key)
getAndRemove in interface KeyValueStore<K,MV extends V,V>public void keysFor(int segment,
@NotNull
SubscriptionConsumer<K> kConsumer)
throws InvalidSubscriberException
keysFor in interface KeyValueStore<K,MV extends V,V>InvalidSubscriberExceptionpublic void entriesFor(int segment,
@NotNull
SubscriptionConsumer<MapEvent<K,V>> kvConsumer)
throws InvalidSubscriberException
entriesFor in interface KeyValueStore<K,MV extends V,V>InvalidSubscriberException@NotNull public Iterator<Map.Entry<K,V>> entrySetIterator()
entrySetIterator in interface KeyValueStore<K,MV extends V,V>public boolean containsValue(MV value)
containsValue in interface KeyValueStore<K,MV extends V,V>public Asset asset()
public KeyValueStore underlying()
underlying in interface Assetted<KeyValueStore<K,MV extends V,V>>public void close()
close in interface Closeableclose in interface AutoCloseablepublic void accept(EngineReplication.ReplicationEntry replicationEntry)
accept in interface java.util.function.Consumer<EngineReplication.ReplicationEntry>Copyright © 2015. All rights reserved.