Package io.atomix.client.map
Interface DistributedMap<K,V>
- All Superinterfaces:
DistributedPrimitive,Map<K,,V> SyncPrimitive<DistributedMap<K,V>, AsyncDistributedMap<K, V>>
public interface DistributedMap<K,V>
extends SyncPrimitive<DistributedMap<K,V>,AsyncDistributedMap<K,V>>, Map<K,V>
Distributed map.
-
Nested Class Summary
-
Field Summary
Fields inherited from interface io.atomix.client.SyncPrimitive
DEFAULT_OPERATION_TIMEOUT -
Method Summary
Modifier and TypeMethodDescriptionentrySet()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
async, 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()
-