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