com.hazelcast.client.proxy
Class ClientReplicatedMapProxy<K,V>
java.lang.Object
com.hazelcast.client.spi.ClientProxy
com.hazelcast.client.proxy.ClientReplicatedMapProxy<K,V>
- Type Parameters:
K - key typeV - value type
- All Implemented Interfaces:
- DistributedObject, ReplicatedMap<K,V>, Map<K,V>
public class ClientReplicatedMapProxy<K,V>
- extends ClientProxy
- implements ReplicatedMap<K,V>
The replicated map client side proxy implementation proxying all requests to a member node
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
|
Method Summary |
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)
|
boolean |
isEmpty()
|
Set<K> |
keySet()
|
protected void |
onDestroy()
Called before proxy is destroyed. |
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 id)
|
int |
size()
|
String |
toString()
|
Collection<V> |
values()
|
Collection<V> |
values(Comparator<V> comparator)
|
| Methods inherited from class com.hazelcast.client.spi.ClientProxy |
destroy, equals, getContext, getId, getName, getPartitionKey, getServiceName, hashCode, invoke, invoke, invoke, invokeInterruptibly, listen, listen, onInitialize, onShutdown, setContext, stopListening, throwExceptionIfNull, toData, toObject |
ClientReplicatedMapProxy
public ClientReplicatedMapProxy(String serviceName,
String objectName)
onDestroy
protected void onDestroy()
- Description copied from class:
ClientProxy
- Called before proxy is destroyed.
Overriding implementations should clean/release resources created during initialization.
- Overrides:
onDestroy in class ClientProxy
put
public V put(K key,
V value,
long ttl,
TimeUnit timeUnit)
- Specified by:
put in interface ReplicatedMap<K,V>
size
public int size()
- Specified by:
size in interface Map<K,V>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Map<K,V>
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey in interface Map<K,V>
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue in interface Map<K,V>
get
public V get(Object key)
- Specified by:
get in interface Map<K,V>
put
public V put(K key,
V value)
- Specified by:
put in interface Map<K,V>
remove
public V remove(Object key)
- Specified by:
remove in interface Map<K,V>
putAll
public void putAll(Map<? extends K,? extends V> m)
- Specified by:
putAll in interface Map<K,V>
clear
public void clear()
- Specified by:
clear in interface ReplicatedMap<K,V>- Specified by:
clear in interface Map<K,V>
removeEntryListener
public boolean removeEntryListener(String id)
- Specified by:
removeEntryListener in interface ReplicatedMap<K,V>
addEntryListener
public String addEntryListener(EntryListener<K,V> listener)
- Specified by:
addEntryListener in interface ReplicatedMap<K,V>
addEntryListener
public String addEntryListener(EntryListener<K,V> listener,
K key)
- Specified by:
addEntryListener in interface ReplicatedMap<K,V>
addEntryListener
public String addEntryListener(EntryListener<K,V> listener,
Predicate<K,V> predicate)
- Specified by:
addEntryListener in interface ReplicatedMap<K,V>
addEntryListener
public String addEntryListener(EntryListener<K,V> listener,
Predicate<K,V> predicate,
K key)
- Specified by:
addEntryListener in interface ReplicatedMap<K,V>
keySet
public Set<K> keySet()
- Specified by:
keySet in interface Map<K,V>
values
public Collection<V> values()
- Specified by:
values in interface ReplicatedMap<K,V>- Specified by:
values in interface Map<K,V>
values
public Collection<V> values(Comparator<V> comparator)
- Specified by:
values in interface ReplicatedMap<K,V>
entrySet
public Set<Map.Entry<K,V>> entrySet()
- Specified by:
entrySet in interface ReplicatedMap<K,V>- Specified by:
entrySet in interface Map<K,V>
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.