Package io.atomix.client.map
Interface DistributedMap<K,V>
- All Superinterfaces:
DistributedPrimitive,Map<K,,V> SyncPrimitive
Distributed map.
-
Nested Class Summary
-
Field Summary
Fields inherited from interface io.atomix.client.DistributedPrimitive
DEFAULT_OPERATION_TIMEOUT_MILLIS -
Method Summary
Modifier and TypeMethodDescriptionasync()Returns the underlying asynchronous primitive.entrySet()keySet()default Cancellablelisten(MapEventListener<K, V> listener) Registers the specified listener to be notified whenever the map is updated.listen(MapEventListener<K, V> listener, Executor executor) Registers the specified listener to be notified whenever the map is updated.values()Methods inherited from interface io.atomix.client.DistributedPrimitive
nameMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, sizeMethods inherited from interface io.atomix.client.SyncPrimitive
close
-
Method Details
-
listen
Registers the specified listener to be notified whenever the map is updated.- Parameters:
listener- listener to notify about map events
-
listen
Registers the specified listener to be notified whenever the map is updated.- Parameters:
listener- listener to notify about map eventsexecutor- executor to use for handling incoming map events
-
keySet
DistributedSet<K> keySet() -
entrySet
DistributedSet<Map.Entry<K,V>> entrySet() -
values
DistributedCollection<V> values() -
async
AsyncDistributedMap<K,V> async()Description copied from interface:SyncPrimitiveReturns the underlying asynchronous primitive.- Specified by:
asyncin interfaceSyncPrimitive- Returns:
- the underlying asynchronous primitive
-