Class TotalOrderNonVersionedPrepareCommand

    • Method Detail

      • getCommandId

        public byte getCommandId()
        Description copied from interface: ReplicableCommand
        Used by marshallers to convert this command into an id for streaming.
        Specified by:
        getCommandId in interface ReplicableCommand
        Overrides:
        getCommandId in class PrepareCommand
        Returns:
        the method id of this command. This is compatible with pre-2.2.0 MethodCall ids.
      • markAsOnePhaseCommit

        public void markAsOnePhaseCommit()
        Description copied from interface: TotalOrderPrepareCommand
        marks the prepare phase as 1PC to apply immediately the modifications. It is used when the org.infinispan.commands.tx.CommitCommand is received before the org.infinispan.commands.tx.PrepareCommand.
        Specified by:
        markAsOnePhaseCommit in interface TotalOrderPrepareCommand
      • markSkipWriteSkewCheck

        public void markSkipWriteSkewCheck()
        Description copied from interface: TotalOrderPrepareCommand
        it signals that the write skew check is not needed (for versioned entries). It is used when the org.infinispan.commands.tx.CommitCommand is received before the org.infinispan.commands.tx.PrepareCommand.
        Specified by:
        markSkipWriteSkewCheck in interface TotalOrderPrepareCommand
      • getOrCreateState

        public org.infinispan.transaction.impl.TotalOrderRemoteTransactionState getOrCreateState()
        Description copied from interface: TotalOrderPrepareCommand
        returns the TotalOrderRemoteTransactionState associated with this transaction, creating one if no one was associated to this transaction.
        Specified by:
        getOrCreateState in interface TotalOrderPrepareCommand
        Returns:
        returns the TotalOrderRemoteTransactionState associated with this transaction.