Interface DistributedSet<E>

  • Type Parameters:
    E - set entry type
    All Superinterfaces:
    java.util.Collection<E>, DistributedPrimitive, java.lang.Iterable<E>, java.util.Set<E>
    All Known Implementing Classes:
    DefaultDistributedSet

    public interface DistributedSet<E>
    extends java.util.Set<E>, DistributedPrimitive
    A distributed collection designed for holding unique elements.
    • Method Detail

      • addListener

        void addListener​(SetEventListener<E> listener)
        Registers the specified listener to be notified whenever the set is updated.
        Parameters:
        listener - listener to notify about set update events
      • removeListener

        void removeListener​(SetEventListener<E> listener)
        Unregisters the specified listener.
        Parameters:
        listener - listener to unregister.