Interface TotalOrderPrepareCommand
-
- All Superinterfaces:
CacheRpcCommand
,ReplicableCommand
,TopologyAffectedCommand
,TransactionBoundaryCommand
,VisitableCommand
- All Known Implementing Classes:
TotalOrderNonVersionedPrepareCommand
,TotalOrderVersionedPrepareCommand
public interface TotalOrderPrepareCommand extends TransactionBoundaryCommand
Interface with the utilities methods that the prepare command must have when Total Order based protocol is used- Since:
- 5.3
- Author:
- Pedro Ruivo
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.infinispan.commands.VisitableCommand
VisitableCommand.LoadType
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WriteCommand[]
getModifications()
TotalOrderRemoteTransactionState
getOrCreateState()
returns theTotalOrderRemoteTransactionState
associated with this transaction, creating one if no one was associated to this transaction.void
markAsOnePhaseCommit()
marks the prepare phase as 1PC to apply immediately the modifications.void
markSkipWriteSkewCheck()
it signals that the write skew check is not needed (for versioned entries).boolean
skipWriteSkewCheck()
-
Methods inherited from interface org.infinispan.commands.remote.CacheRpcCommand
getCacheName, getOrigin, setOrigin
-
Methods inherited from interface org.infinispan.commands.ReplicableCommand
canBlock, getCommandId, invoke, invokeAsync, isReturnValueExpected, isSuccessful, readFrom, writeTo
-
Methods inherited from interface org.infinispan.commands.TopologyAffectedCommand
getTopologyId, setTopologyId
-
Methods inherited from interface org.infinispan.commands.tx.TransactionBoundaryCommand
getGlobalTransaction, markTransactionAsRemote
-
Methods inherited from interface org.infinispan.commands.VisitableCommand
acceptVisitor, ignoreCommandOnStatus, loadType, perform, shouldInvoke
-
-
-
-
Method Detail
-
markAsOnePhaseCommit
void markAsOnePhaseCommit()
marks the prepare phase as 1PC to apply immediately the modifications. It is used when theorg.infinispan.commands.tx.CommitCommand
is received before theorg.infinispan.commands.tx.PrepareCommand
.
-
markSkipWriteSkewCheck
void markSkipWriteSkewCheck()
it signals that the write skew check is not needed (for versioned entries). It is used when theorg.infinispan.commands.tx.CommitCommand
is received before theorg.infinispan.commands.tx.PrepareCommand
.
-
skipWriteSkewCheck
boolean skipWriteSkewCheck()
- Returns:
true
when the write skew check is not needed.
-
getModifications
WriteCommand[] getModifications()
- Returns:
- the modifications performed by this transaction
-
getOrCreateState
TotalOrderRemoteTransactionState getOrCreateState()
returns theTotalOrderRemoteTransactionState
associated with this transaction, creating one if no one was associated to this transaction.- Returns:
- returns the
TotalOrderRemoteTransactionState
associated with this transaction.
-
-