public class DefaultAtomicIdGenerator extends Synchronous<AsyncAtomicIdGenerator> implements AtomicIdGenerator
AtomicIdGenerator
backed by a AsyncAtomicIdGenerator
.DistributedPrimitive.Status, DistributedPrimitive.Type
DEFAULT_OPERATION_TIMEOUT_MILLIS, DEFAULT_OPERTATION_TIMEOUT_MILLIS
Constructor and Description |
---|
DefaultAtomicIdGenerator(AsyncAtomicIdGenerator asyncIdGenerator,
long operationTimeoutMillis) |
Modifier and Type | Method and Description |
---|---|
long |
nextId()
Gets the next globally unique numeric identifier.
|
destroy, name, primitiveType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
primitiveType
addStatusChangeListener, applicationId, destroy, name, removeStatusChangeListener, statusChangeListeners
public DefaultAtomicIdGenerator(AsyncAtomicIdGenerator asyncIdGenerator, long operationTimeoutMillis)
public long nextId()
AtomicIdGenerator
nextId
in interface AtomicIdGenerator