public interface DistributedMap<K,V> extends SyncPrimitive, Map<K,V>
DEFAULT_OPERATION_TIMEOUT_MILLIS| Modifier and Type | Method and Description |
|---|---|
default void |
addListener(MapEventListener<K,V> listener)
Registers the specified listener to be notified whenever the map is updated.
|
void |
addListener(MapEventListener<K,V> listener,
Executor executor)
Registers the specified listener to be notified whenever the map is updated.
|
AsyncDistributedMap<K,V> |
async()
Returns the underlying asynchronous primitive.
|
DistributedSet<Map.Entry<K,V>> |
entrySet() |
DistributedSet<K> |
keySet() |
void |
removeListener(MapEventListener<K,V> listener)
Unregisters the specified listener such that it will no longer
receive map change notifications.
|
DistributedCollection<V> |
values() |
close, deleteaddStateChangeListener, name, protocol, removeStateChangeListener, typeclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, sizedefault void addListener(MapEventListener<K,V> listener)
listener - listener to notify about map eventsvoid addListener(MapEventListener<K,V> listener, Executor executor)
listener - listener to notify about map eventsexecutor - executor to use for handling incoming map eventsvoid removeListener(MapEventListener<K,V> listener)
listener - listener to unregisterAsyncDistributedMap<K,V> async()
SyncPrimitiveasync in interface SyncPrimitiveCopyright © 2013–2018. All rights reserved.