K
- key typeV
- value typepublic class ClientReplicatedMapProxy<K,V> extends ClientProxy implements ReplicatedMap<K,V>
Modifier and Type | Field and Description |
---|---|
protected static String |
NULL_KEY_IS_NOT_ALLOWED |
protected static String |
NULL_VALUE_IS_NOT_ALLOWED |
name
Constructor and Description |
---|
ClientReplicatedMapProxy(String serviceName,
String objectName) |
Modifier and Type | Method and Description |
---|---|
String |
addEntryListener(EntryListener<K,V> listener) |
String |
addEntryListener(EntryListener<K,V> listener,
K key) |
String |
addEntryListener(EntryListener<K,V> listener,
Predicate<K,V> predicate) |
String |
addEntryListener(EntryListener<K,V> listener,
Predicate<K,V> predicate,
K key) |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
LocalReplicatedMapStats |
getReplicatedMapStats() |
boolean |
isEmpty() |
Set<K> |
keySet() |
protected void |
onDestroy()
Called before proxy is destroyed.
|
protected void |
onInitialize()
Called when proxy is created.
|
V |
put(K key,
V value) |
V |
put(K key,
V value,
long ttl,
TimeUnit timeUnit) |
void |
putAll(Map<? extends K,? extends V> m) |
V |
remove(Object key) |
boolean |
removeEntryListener(String registrationId) |
int |
size() |
String |
toString() |
Collection<V> |
values() |
Collection<V> |
values(Comparator<V> comparator) |
deregisterListener, destroy, equals, getClient, getContext, getDistributedObjectName, getId, getName, getPartitionKey, getSerializationService, getServiceName, hashCode, invoke, invoke, invokeOnPartition, invokeOnPartitionInterruptibly, onShutdown, postDestroy, preDestroy, registerListener, setContext, toData, toObject
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
destroy, getName, getPartitionKey, getServiceName
protected static final String NULL_KEY_IS_NOT_ALLOWED
protected static final String NULL_VALUE_IS_NOT_ALLOWED
protected void onInitialize()
ClientProxy
onInitialize
in class ClientProxy
protected void onDestroy()
ClientProxy
onDestroy
in class ClientProxy
public V put(K key, V value, long ttl, TimeUnit timeUnit)
put
in interface ReplicatedMap<K,V>
public boolean containsKey(Object key)
containsKey
in interface Map<K,V>
public boolean containsValue(Object value)
containsValue
in interface Map<K,V>
public void clear()
public boolean removeEntryListener(String registrationId)
removeEntryListener
in interface ReplicatedMap<K,V>
public String addEntryListener(EntryListener<K,V> listener)
addEntryListener
in interface ReplicatedMap<K,V>
public String addEntryListener(EntryListener<K,V> listener, K key)
addEntryListener
in interface ReplicatedMap<K,V>
public String addEntryListener(EntryListener<K,V> listener, Predicate<K,V> predicate)
addEntryListener
in interface ReplicatedMap<K,V>
public String addEntryListener(EntryListener<K,V> listener, Predicate<K,V> predicate, K key)
addEntryListener
in interface ReplicatedMap<K,V>
public LocalReplicatedMapStats getReplicatedMapStats()
getReplicatedMapStats
in interface ReplicatedMap<K,V>
public Collection<V> values()
public Collection<V> values(Comparator<V> comparator)
values
in interface ReplicatedMap<K,V>
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.