Package org.onosproject.store.service
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.
-
-
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 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.
-
-