Class AtomixAtomicIdGenerator

  • All Implemented Interfaces:
    org.onosproject.store.service.AsyncAtomicIdGenerator, org.onosproject.store.service.DistributedPrimitive

    public class AtomixAtomicIdGenerator
    extends java.lang.Object
    implements org.onosproject.store.service.AsyncAtomicIdGenerator
    Atomix atomic ID generator.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.onosproject.store.service.DistributedPrimitive

        org.onosproject.store.service.DistributedPrimitive.Status, org.onosproject.store.service.DistributedPrimitive.Type
    • Field Summary

      • Fields inherited from interface org.onosproject.store.service.DistributedPrimitive

        DEFAULT_OPERATION_TIMEOUT_MILLIS
    • Constructor Summary

      Constructors 
      Constructor Description
      AtomixAtomicIdGenerator​(io.atomix.core.idgenerator.AsyncAtomicIdGenerator atomixIdGenerator)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String name()  
      java.util.concurrent.CompletableFuture<java.lang.Long> nextId()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.onosproject.store.service.AsyncAtomicIdGenerator

        asAtomicIdGenerator, asAtomicIdGenerator, primitiveType
      • Methods inherited from interface org.onosproject.store.service.DistributedPrimitive

        addStatusChangeListener, applicationId, destroy, removeStatusChangeListener, statusChangeListeners
    • Constructor Detail

      • AtomixAtomicIdGenerator

        public AtomixAtomicIdGenerator​(io.atomix.core.idgenerator.AsyncAtomicIdGenerator atomixIdGenerator)
    • Method Detail

      • name

        public java.lang.String name()
        Specified by:
        name in interface org.onosproject.store.service.DistributedPrimitive
      • nextId

        public java.util.concurrent.CompletableFuture<java.lang.Long> nextId()
        Specified by:
        nextId in interface org.onosproject.store.service.AsyncAtomicIdGenerator