public class RemoteKeyValueStore<K,V> extends AbstractStatelessClient<MapWireHandler.EventId> implements Cloneable, ObjectKeyValueStore<K,V,V>
| Modifier and Type | Field and Description |
|---|---|
static java.util.function.Consumer<net.openhft.chronicle.wire.ValueOut> |
VOID_PARAMETERS |
csp, hub| Constructor and Description |
|---|
RemoteKeyValueStore(RequestContext requestContext,
Asset asset) |
RemoteKeyValueStore(RequestContext context,
Asset asset,
TcpChannelHub hub) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(EngineReplication.ReplicationEntry replicationEntry) |
Asset |
asset() |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(V value) |
void |
entriesFor(int segment,
SubscriptionConsumer<MapEvent<K,V>> kvConsumer) |
Set<Map.Entry<K,V>> |
entrySet() |
Iterator<Map.Entry<K,V>> |
entrySetIterator() |
boolean |
equals(Object object)
calling this method should be avoided at all cost, as the entire
object is
serialized. |
File |
file() |
V |
get(Object key) |
V |
getAndPut(Object key,
Object value) |
V |
getAndRemove(Object key) |
V |
getUsing(K key,
V usingValue) |
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isKeyType(Object key) |
Set<K> |
keySet() |
void |
keysFor(int segment,
SubscriptionConsumer<K> kConsumer) |
Class<K> |
keyType() |
long |
longSize() |
boolean |
put(K key,
V value)
put an entry
|
V |
putIfAbsent(K key,
V value) |
boolean |
remove(Object key)
remove a key
|
boolean |
remove(Object key,
Object value) |
V |
replace(K key,
V value) |
boolean |
replace(K key,
V oldValue,
V newValue) |
ObjectKVSSubscription<K,V,V> |
subscription(boolean createIfAbsent) |
String |
toString() |
KeyValueStore<K,V,V> |
underlying() |
Collection<V> |
values() |
Class<V> |
valueType() |
checkIsData, close, proxyReturnBoolean, proxyReturnBooleanWithArgs, proxyReturnBooleanWithSequence, proxyReturnByte, proxyReturnByte, proxyReturnInt, proxyReturnLong, proxyReturnTypedObject, proxyReturnUint16, proxyReturnVoid, proxyReturnVoid, proxyReturnWireConsumer, proxyReturnWireConsumerInOut, readBoolean, readInt, readReply, readReplyConsumer, sendEvent, sendEventAsync, sendEventAsyncWithoutLock, toParameters, writeAsyncMetaData, writeMetaDataForKnownTID, writeMetaDataStartTimeclone, finalize, getClass, notify, notifyAll, wait, wait, waitisReadOnly, keyedView, keySetIterator, removeIfEqual, replaceIfEqual, segmentFor, segments, valuesIteratorandThenpublic static final java.util.function.Consumer<net.openhft.chronicle.wire.ValueOut> VOID_PARAMETERS
public RemoteKeyValueStore(@NotNull
RequestContext context,
@NotNull
Asset asset,
@NotNull
TcpChannelHub hub)
public RemoteKeyValueStore(@NotNull
RequestContext requestContext,
@NotNull
Asset asset)
public boolean isKeyType(Object key)
isKeyType in interface KeyValueStore<K,V,V>@NotNull public File file()
@Nullable public V putIfAbsent(K key, V value)
putIfAbsent in interface KeyValueStore<K,V,V>public boolean containsValue(V value)
containsValue in interface KeyValueStore<K,V,V>@Nullable public V replace(K key, V value)
replace in interface KeyValueStore<K,V,V>public void keysFor(int segment,
@NotNull
SubscriptionConsumer<K> kConsumer)
throws InvalidSubscriberException
keysFor in interface KeyValueStore<K,V,V>InvalidSubscriberExceptionpublic void entriesFor(int segment,
@NotNull
SubscriptionConsumer<MapEvent<K,V>> kvConsumer)
throws InvalidSubscriberException
entriesFor in interface KeyValueStore<K,V,V>InvalidSubscriberExceptionpublic boolean equals(@Nullable
Object object)
object is
serialized. This equals can be used to compare map that extends ChronicleMap. So two
Chronicle Maps that contain the same data are considered equal, even if the instances of the
chronicle maps were of different typespublic boolean isEmpty()
public boolean containsKey(Object key)
containsKey in interface KeyValueStore<K,V,V>@Nullable public V getUsing(K key, V usingValue)
getUsing in interface KeyValueStore<K,V,V>public long longSize()
longSize in interface KeyValueStore<K,V,V>public boolean remove(Object key)
KeyValueStoreremove in interface KeyValueStore<K,V,V>key - to remove@Nullable public V getAndRemove(Object key)
getAndRemove in interface KeyValueStore<K,V,V>public boolean put(K key, V value)
KeyValueStoreput in interface KeyValueStore<K,V,V>key - to setvalue - to set@Nullable public V getAndPut(Object key, Object value)
getAndPut in interface KeyValueStore<K,V,V>public void clear()
clear in interface KeyValueStore<K,V,V>@Nullable public Collection<V> values()
@NotNull public Iterator<Map.Entry<K,V>> entrySetIterator()
entrySetIterator in interface KeyValueStore<K,V,V>@NotNull public KeyValueStore<K,V,V> underlying()
underlying in interface Assetted<KeyValueStore<K,V,V>>@NotNull public ObjectKVSSubscription<K,V,V> subscription(boolean createIfAbsent)
subscription in interface SubscriptionKeyValueStore<K,V,V>public Class<V> valueType()
valueType in interface ObjectKeyValueStore<K,V,V>public void accept(EngineReplication.ReplicationEntry replicationEntry)
accept in interface java.util.function.Consumer<EngineReplication.ReplicationEntry>Copyright © 2015. All rights reserved.