Package io.atomix.primitive.protocol.map
Interface MapDelegate<K,V>
- All Superinterfaces:
Map<K,V>
- All Known Subinterfaces:
NavigableMapDelegate<K,V>
,SortedMapDelegate<K,V>
@Beta public interface MapDelegate<K,V> extends Map<K,V>
Gossip-based map service.
-
Nested Class Summary
-
Method Summary
Modifier and Type Method 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
close()
Closes the map.void
removeListener(MapDelegateEventListener<K,V> listener)
Removes the specified listener from the map such that it will no longer receive change notifications.Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Method Details
-
addListener
Adds the specified listener to the map which will be notified whenever the mappings in the map are changed.- Parameters:
listener
- listener to register for events
-
removeListener
Removes the specified listener from the map such that it will no longer receive change notifications.- Parameters:
listener
- listener to deregister for events
-
close
void close()Closes the map.
-