Package org.onosproject.store.service
Interface AtomicIdGenerator
-
- All Superinterfaces:
DistributedPrimitive
- All Known Implementing Classes:
DefaultAtomicIdGenerator
public interface AtomicIdGenerator extends DistributedPrimitive
Generator for globally unique numeric identifiers.
-
-
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 Default Methods Modifier and Type Method Description longnextId()Gets the next globally unique numeric identifier.default DistributedPrimitive.TypeprimitiveType()Returns the type of primitive.-
Methods inherited from interface org.onosproject.store.service.DistributedPrimitive
addStatusChangeListener, applicationId, destroy, name, removeStatusChangeListener, statusChangeListeners
-
-
-
-
Method Detail
-
primitiveType
default DistributedPrimitive.Type primitiveType()
Description copied from interface:DistributedPrimitiveReturns the type of primitive.- Specified by:
primitiveTypein interfaceDistributedPrimitive- Returns:
- primitive type
-
nextId
long nextId()
Gets the next globally unique numeric identifier.- Returns:
- the next globally unique numeric identifier
-
-