public class AntiEntropyMapDelegate<K,V> extends Object implements MapDelegate<K,V>
| Constructor and Description |
|---|
AntiEntropyMapDelegate(String name,
Serializer entrySerializer,
AntiEntropyProtocolConfig config,
PrimitiveManagementService managementService) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(MapDelegateEventListener<K,V> listener)
Adds the specified listener to the map which will be notified whenever the mappings in the map are changed.
|
void |
clear() |
void |
close()
Closes the map.
|
V |
compute(K key,
BiFunction<? super K,? super V,? extends V> recomputeFunction) |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
boolean |
isEmpty() |
Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
V |
remove(Object key) |
boolean |
remove(Object key,
Object value) |
void |
removeListener(MapDelegateEventListener<K,V> listener)
Removes the specified listener from the map such that it will no longer receive change notifications.
|
int |
size() |
Collection<V> |
values() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomputeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, replace, replace, replaceAllpublic AntiEntropyMapDelegate(String name, Serializer entrySerializer, AntiEntropyProtocolConfig config, PrimitiveManagementService managementService)
public boolean containsKey(Object key)
containsKey in interface Map<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>public void addListener(MapDelegateEventListener<K,V> listener)
MapDelegateaddListener in interface MapDelegate<K,V>listener - listener to register for eventspublic void removeListener(MapDelegateEventListener<K,V> listener)
MapDelegateremoveListener in interface MapDelegate<K,V>listener - listener to deregister for eventspublic void close()
MapDelegateclose in interface MapDelegate<K,V>Copyright © 2013–2018. All rights reserved.