public class TotalOrderVersionedPrepareCommand extends VersionedPrepareCommand implements TotalOrderPrepareCommand
Modifier and Type | Field and Description |
---|---|
static byte |
COMMAND_ID |
modifications, notifier, onePhaseCommit, recoveryManager
Constructor and Description |
---|
TotalOrderVersionedPrepareCommand(String cacheName) |
TotalOrderVersionedPrepareCommand(String cacheName,
GlobalTransaction gtx,
List<WriteCommand> modifications,
boolean onePhase) |
Modifier and Type | Method and Description |
---|---|
byte |
getCommandId()
Used by marshallers to convert this command into an id for streaming.
|
TotalOrderRemoteTransactionState |
getOrCreateState()
returns the
TotalOrderRemoteTransactionState 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() |
getParameters, getVersionsSeen, isReturnValueExpected, setParameters, setVersionsSeen, toString
acceptVisitor, copy, getAffectedKeys, getAffectedKeysToLock, getModifications, getRemoteTransaction, hasModifications, initialize, isOnePhaseCommit, isReplayEntryWrapping, perform, setReplayEntryWrapping, writesToASingleKey
canBlock, equals, getCacheName, getGlobalTransaction, getOrigin, getTopologyId, hashCode, ignoreCommandOnStatus, init, invalidRemoteTxReturnValue, markTransactionAsRemote, setOrigin, setTopologyId, shouldInvoke, visitRemoteTransaction
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getModifications
getGlobalTransaction, markTransactionAsRemote
acceptVisitor, ignoreCommandOnStatus, shouldInvoke
getCacheName, getOrigin, setOrigin
getTopologyId, setTopologyId
canBlock, getParameters, isReturnValueExpected, perform, setParameters
public static final byte COMMAND_ID
public TotalOrderVersionedPrepareCommand(String cacheName, GlobalTransaction gtx, List<WriteCommand> modifications, boolean onePhase)
public TotalOrderVersionedPrepareCommand(String cacheName)
public byte getCommandId()
ReplicableCommand
getCommandId
in interface ReplicableCommand
getCommandId
in class VersionedPrepareCommand
public void markAsOnePhaseCommit()
TotalOrderPrepareCommand
org.infinispan.commands.tx.CommitCommand
is received before the org.infinispan.commands.tx.PrepareCommand
.markAsOnePhaseCommit
in interface TotalOrderPrepareCommand
public void markSkipWriteSkewCheck()
TotalOrderPrepareCommand
org.infinispan.commands.tx.CommitCommand
is received before the org.infinispan.commands.tx.PrepareCommand
.markSkipWriteSkewCheck
in interface TotalOrderPrepareCommand
public boolean skipWriteSkewCheck()
skipWriteSkewCheck
in interface TotalOrderPrepareCommand
true
when the write skew check is not needed.public TotalOrderRemoteTransactionState getOrCreateState()
TotalOrderPrepareCommand
TotalOrderRemoteTransactionState
associated with this transaction, creating one if no one was
associated to this transaction.getOrCreateState
in interface TotalOrderPrepareCommand
TotalOrderRemoteTransactionState
associated with this transaction.Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.