public interface AsyncAtomicIdGenerator extends AsyncPrimitive
DEFAULT_OPERATION_TIMEOUT_MILLIS| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Long> |
nextId()
Returns the next globally unique numeric ID.
|
default AtomicIdGenerator |
sync()
Returns a synchronous wrapper around the asynchronous primitive.
|
AtomicIdGenerator |
sync(Duration operationTimeout)
Returns a synchronous wrapper around the asynchronous primitive.
|
close, deleteaddStateChangeListener, name, protocol, removeStateChangeListener, typeCompletableFuture<Long> nextId()
default AtomicIdGenerator sync()
AsyncPrimitivesync in interface AsyncPrimitiveAtomicIdGenerator sync(Duration operationTimeout)
AsyncPrimitivesync in interface AsyncPrimitiveoperationTimeout - the synchronous operation timeoutCopyright © 2013–2018. All rights reserved.