Interface AsyncAtomicIdGenerator

    • Method Detail

      • nextId

        java.util.concurrent.CompletableFuture<java.lang.Long> nextId()
        Returns the next globally unique numeric ID.
        Returns:
        a future to be completed with the next globally unique identifier
      • asAtomicIdGenerator

        default AtomicIdGenerator asAtomicIdGenerator​(long timeoutMillis)
        Returns a new AtomicIdGenerator that is backed by this instance.
        Parameters:
        timeoutMillis - timeout duration for the returned ConsistentMap operations
        Returns:
        new AtomicIdGenerator instance
      • asAtomicIdGenerator

        default AtomicIdGenerator asAtomicIdGenerator()
        Returns a new AtomicIdGenerator that is backed by this instance and with a default operation timeout.
        Returns:
        new AtomicIdGenerator instance