Package io.atomix.primitive.protocol.set
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 Summary
Modifier and Type Method Description voidaddListener(SetDelegateEventListener<E> listener)Adds the specified listener to the set which will be notified whenever the entries in the set are changed.voidclose()Closes the set.voidremoveListener(SetDelegateEventListener<E> listener)Removes the specified listener from the set such that it will no longer receive change notifications.
-
Method Details
-
addListener
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
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.
-