Package org.onosproject.store.service
Interface DistributedSet<E>
- 
- Type Parameters:
- E- set entry type
 - All Superinterfaces:
- Collection<E>,- DistributedPrimitive,- Iterable<E>,- Set<E>
 - All Known Implementing Classes:
- DefaultDistributedSet
 
 public interface DistributedSet<E> extends Set<E>, DistributedPrimitive A distributed collection designed for holding unique elements.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.onosproject.store.service.DistributedPrimitiveDistributedPrimitive.Status, DistributedPrimitive.Type
 
- 
 - 
Field Summary- 
Fields inherited from interface org.onosproject.store.service.DistributedPrimitiveDEFAULT_OPERATION_TIMEOUT_MILLIS
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddListener(SetEventListener<E> listener)Registers the specified listener to be notified whenever the set is updated.voidremoveListener(SetEventListener<E> listener)Unregisters the specified listener.- 
Methods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArray
 - 
Methods inherited from interface org.onosproject.store.service.DistributedPrimitiveaddStatusChangeListener, applicationId, destroy, name, primitiveType, removeStatusChangeListener, statusChangeListeners
 
- 
 
- 
- 
- 
Method Detail- 
addListenervoid 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
 
 - 
removeListenervoid removeListener(SetEventListener<E> listener) Unregisters the specified listener.- Parameters:
- listener- listener to unregister.
 
 
- 
 
-