Interface SetDelegate<E>

All Superinterfaces:
Collection<E>, Iterable<E>, Set<E>
All Known Subinterfaces:
NavigableSetDelegate<E>, SortedSetDelegate<E>

@Beta
public interface SetDelegate<E>
extends Set<E>
Gossip-based set service.
  • Method Details

    • addListener

      void addListener​(SetDelegateEventListener<E> listener)
      Adds the specified listener to the set which will be notified whenever the entries in the set are changed.
      Parameters:
      listener - listener to register for events
    • removeListener

      void removeListener​(SetDelegateEventListener<E> listener)
      Removes the specified listener from the set such that it will no longer receive change notifications.
      Parameters:
      listener - listener to deregister for events
    • close

      void close()
      Closes the set.