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.
  • Method Details

    • addListener

      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.
      Parameters:
      listener - listener to register for events
    • removeListener

      void removeListener​(MapDelegateEventListener<K,​V> listener)
      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.