public class VanillaStringMarshallableKeyValueStore<V extends net.openhft.chronicle.wire.Marshallable> extends Object implements StringMarshallableKeyValueStore<V>
KeyValueStore.Entry<K,V>| Constructor and Description |
|---|
VanillaStringMarshallableKeyValueStore(RequestContext context,
Asset asset,
SubscriptionKeyValueStore<String,net.openhft.chronicle.bytes.Bytes,net.openhft.chronicle.bytes.BytesStore> kvStore) |
| 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<String,V>> kvConsumer) |
Iterator<Map.Entry<String,V>> |
entrySetIterator() |
V |
getAndPut(String key,
V value) |
V |
getAndRemove(String key) |
V |
getUsing(String key,
V value) |
Iterator<String> |
keySetIterator() |
void |
keysFor(int segment,
SubscriptionConsumer<String> kConsumer) |
Class<String> |
keyType() |
long |
longSize() |
boolean |
put(String key,
V value)
put an entry
|
boolean |
remove(String key)
remove a key
|
ObjectKVSSubscription<String,V,V> |
subscription(boolean createIfAbsent) |
KeyValueStore |
underlying() |
Class<V> |
valueType() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontainsKey, get, isKeyType, isReadOnly, keyedView, putIfAbsent, removeIfEqual, replace, replaceIfEqual, segmentFor, segments, valuesIteratorandThenpublic VanillaStringMarshallableKeyValueStore(RequestContext context, Asset asset, SubscriptionKeyValueStore<String,net.openhft.chronicle.bytes.Bytes,net.openhft.chronicle.bytes.BytesStore> kvStore) throws AssetNotFoundException
AssetNotFoundExceptionpublic ObjectKVSSubscription<String,V,V> subscription(boolean createIfAbsent)
subscription in interface SubscriptionKeyValueStore<String,V extends net.openhft.chronicle.wire.Marshallable,V extends net.openhft.chronicle.wire.Marshallable>public boolean put(String key, V value)
KeyValueStoreput in interface KeyValueStore<String,V extends net.openhft.chronicle.wire.Marshallable,V extends net.openhft.chronicle.wire.Marshallable>key - to setvalue - to setpublic V getAndPut(String key, V value)
getAndPut in interface KeyValueStore<String,V extends net.openhft.chronicle.wire.Marshallable,V extends net.openhft.chronicle.wire.Marshallable>public boolean remove(String key)
KeyValueStoreremove in interface KeyValueStore<String,V extends net.openhft.chronicle.wire.Marshallable,V extends net.openhft.chronicle.wire.Marshallable>key - to removepublic V getAndRemove(String key)
getAndRemove in interface KeyValueStore<String,V extends net.openhft.chronicle.wire.Marshallable,V extends net.openhft.chronicle.wire.Marshallable>public V getUsing(String key, V value)
getUsing in interface KeyValueStore<String,V extends net.openhft.chronicle.wire.Marshallable,V extends net.openhft.chronicle.wire.Marshallable>public long longSize()
longSize in interface KeyValueStore<String,V extends net.openhft.chronicle.wire.Marshallable,V extends net.openhft.chronicle.wire.Marshallable>public void keysFor(int segment,
SubscriptionConsumer<String> kConsumer)
throws InvalidSubscriberException
keysFor in interface KeyValueStore<String,V extends net.openhft.chronicle.wire.Marshallable,V extends net.openhft.chronicle.wire.Marshallable>InvalidSubscriberExceptionpublic void entriesFor(int segment,
SubscriptionConsumer<MapEvent<String,V>> kvConsumer)
throws InvalidSubscriberException
entriesFor in interface KeyValueStore<String,V extends net.openhft.chronicle.wire.Marshallable,V extends net.openhft.chronicle.wire.Marshallable>InvalidSubscriberExceptionpublic Iterator<Map.Entry<String,V>> entrySetIterator()
entrySetIterator in interface KeyValueStore<String,V extends net.openhft.chronicle.wire.Marshallable,V extends net.openhft.chronicle.wire.Marshallable>public Iterator<String> keySetIterator()
keySetIterator in interface KeyValueStore<String,V extends net.openhft.chronicle.wire.Marshallable,V extends net.openhft.chronicle.wire.Marshallable>public void clear()
clear in interface KeyValueStore<String,V extends net.openhft.chronicle.wire.Marshallable,V extends net.openhft.chronicle.wire.Marshallable>public boolean containsValue(V value)
containsValue in interface KeyValueStore<String,V extends net.openhft.chronicle.wire.Marshallable,V extends net.openhft.chronicle.wire.Marshallable>public Asset asset()
public KeyValueStore underlying()
underlying in interface Assetted<KeyValueStore<String,V extends net.openhft.chronicle.wire.Marshallable,V extends net.openhft.chronicle.wire.Marshallable>>public void close()
close in interface Closeableclose in interface AutoCloseablepublic Class<String> keyType()
keyType in interface ObjectKeyValueStore<String,V extends net.openhft.chronicle.wire.Marshallable,V extends net.openhft.chronicle.wire.Marshallable>public Class<V> valueType()
valueType in interface ObjectKeyValueStore<String,V extends net.openhft.chronicle.wire.Marshallable,V extends net.openhft.chronicle.wire.Marshallable>public void accept(EngineReplication.ReplicationEntry replicationEntry)
accept in interface java.util.function.Consumer<EngineReplication.ReplicationEntry>Copyright © 2015. All rights reserved.