K - key typeMV - mutable value typeV - immutable value typepublic interface KeyValueStore<K,MV,V> extends Assetted<KeyValueStore<K,MV,V>>, View, net.openhft.chronicle.core.io.Closeable, java.util.function.Consumer<EngineReplication.ReplicationEntry>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
KeyValueStore.Entry<K,V> |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
default boolean |
containsKey(K key) |
boolean |
containsValue(MV value) |
void |
entriesFor(int segment,
SubscriptionConsumer<MapEvent<K,V>> kvConsumer) |
default Iterator<Map.Entry<K,V>> |
entrySetIterator() |
default V |
get(K key) |
V |
getAndPut(K key,
V value) |
V |
getAndRemove(K key) |
V |
getUsing(K key,
MV value) |
default boolean |
isKeyType(Object key) |
default boolean |
isReadOnly() |
default boolean |
keyedView() |
default Iterator<K> |
keySetIterator() |
void |
keysFor(int segment,
SubscriptionConsumer<K> kConsumer) |
long |
longSize() |
default boolean |
put(K key,
V value)
put an entry
|
default V |
putIfAbsent(K key,
V value) |
default boolean |
remove(K key)
remove a key
|
default boolean |
removeIfEqual(K key,
V value) |
default V |
replace(K key,
V value) |
default boolean |
replaceIfEqual(K key,
V oldValue,
V newValue) |
default int |
segmentFor(K key) |
default int |
segments() |
default Iterator<V> |
valuesIterator() |
asset, underlyingaccept, andThendefault boolean put(K key, V value)
key - to setvalue - to setdefault boolean remove(K key)
key - to removedefault boolean containsKey(K key)
default boolean isReadOnly()
long longSize()
default int segments()
default int segmentFor(K key)
void keysFor(int segment,
SubscriptionConsumer<K> kConsumer)
throws InvalidSubscriberException
InvalidSubscriberExceptionvoid entriesFor(int segment,
SubscriptionConsumer<MapEvent<K,V>> kvConsumer)
throws InvalidSubscriberException
InvalidSubscriberExceptionvoid clear()
default boolean isKeyType(Object key)
boolean containsValue(MV value)
Copyright © 2015. All rights reserved.