Class RemoteTransactionContext


  • public class RemoteTransactionContext
    extends Object
    Redirects front-end transaction operations to a shard for processing. Instances of this class are used when the destination shard is remote to the caller.
    Author:
    Thomas Pantelis
    • Method Detail

      • getActorUtils

        protected ActorUtils getActorUtils()
      • closeTransaction

        public void closeTransaction()
      • directCommit

        public scala.concurrent.Future<Object> directCommit​(Boolean havePermit)
      • transformReadyReply

        protected scala.concurrent.Future<ActorSelection> transformReadyReply​(scala.concurrent.Future<Object> readyReplyFuture)
      • sendBatchedModifications

        protected scala.concurrent.Future<Object> sendBatchedModifications()
      • sendBatchedModifications

        protected scala.concurrent.Future<Object> sendBatchedModifications​(boolean ready,
                                                                           boolean doCommitOnReady,
                                                                           Optional<SortedSet<String>> participatingShardNames)
      • usesOperationLimiting

        public boolean usesOperationLimiting()
      • getIdentifier

        protected final @NonNull TransactionIdentifier getIdentifier()
        Get the transaction identifier associated with this context.
        Returns:
        Transaction identifier.
      • incrementModificationCount

        protected final void incrementModificationCount()
      • logModificationCount

        protected final void logModificationCount()
      • operationHandOffComplete

        public final void operationHandOffComplete()
      • isOperationHandOffComplete

        protected boolean isOperationHandOffComplete()
      • getTransactionVersion

        public short getTransactionVersion()