Class AtomixTransactionContext

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

    public class AtomixTransactionContext
    extends java.lang.Object
    implements org.onosproject.store.service.TransactionContext
    Atomix transaction context.
    • 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
      AtomixTransactionContext​(io.atomix.core.transaction.AsyncTransaction atomixTransaction, java.lang.String group)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void abort()  
      void begin()  
      java.util.concurrent.CompletableFuture<org.onosproject.store.service.CommitStatus> commit()  
      <K,​V>
      org.onosproject.store.service.TransactionalMap<K,​V>
      getTransactionalMap​(java.lang.String mapName, org.onosproject.store.service.Serializer serializer)  
      boolean isOpen()  
      java.lang.String name()  
      org.onosproject.store.primitives.TransactionId transactionId()  
      • 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.DistributedPrimitive

        addStatusChangeListener, applicationId, destroy, removeStatusChangeListener, statusChangeListeners
      • Methods inherited from interface org.onosproject.store.service.TransactionContext

        primitiveType
    • Constructor Detail

      • AtomixTransactionContext

        public AtomixTransactionContext​(io.atomix.core.transaction.AsyncTransaction atomixTransaction,
                                        java.lang.String group)
    • Method Detail

      • name

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

        public org.onosproject.store.primitives.TransactionId transactionId()
        Specified by:
        transactionId in interface org.onosproject.store.service.TransactionContext
      • isOpen

        public boolean isOpen()
        Specified by:
        isOpen in interface org.onosproject.store.service.TransactionContext
      • begin

        public void begin()
        Specified by:
        begin in interface org.onosproject.store.service.TransactionContext
      • commit

        public java.util.concurrent.CompletableFuture<org.onosproject.store.service.CommitStatus> commit()
        Specified by:
        commit in interface org.onosproject.store.service.TransactionContext
      • abort

        public void abort()
        Specified by:
        abort in interface org.onosproject.store.service.TransactionContext
      • getTransactionalMap

        public <K,​V> org.onosproject.store.service.TransactionalMap<K,​V> getTransactionalMap​(java.lang.String mapName,
                                                                                                         org.onosproject.store.service.Serializer serializer)
        Specified by:
        getTransactionalMap in interface org.onosproject.store.service.TransactionContext