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.DistributedPrimitive
DistributedPrimitive.Status, DistributedPrimitive.Type
-
-
Field Summary
-
Fields inherited from interface org.onosproject.store.service.DistributedPrimitive
DEFAULT_OPERATION_TIMEOUT_MILLIS
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addListener(SetEventListener<E> listener)
Registers the specified listener to be notified whenever the set is updated.void
removeListener(SetEventListener<E> listener)
Unregisters the specified listener.-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface org.onosproject.store.service.DistributedPrimitive
addStatusChangeListener, applicationId, destroy, name, primitiveType, removeStatusChangeListener, statusChangeListeners
-
-
-
-
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.
-
-