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, toStringacceptVisitor, copy, getAffectedKeys, getAffectedKeysToLock, getModifications, getRemoteTransaction, hasModifications, initialize, isOnePhaseCommit, isReplayEntryWrapping, perform, setReplayEntryWrapping, writesToASingleKeycanBlock, equals, getCacheName, getGlobalTransaction, getOrigin, getTopologyId, hashCode, ignoreCommandOnStatus, init, invalidRemoteTxReturnValue, markTransactionAsRemote, setOrigin, setTopologyId, shouldInvoke, visitRemoteTransactionclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetModificationsgetGlobalTransaction, markTransactionAsRemoteacceptVisitor, ignoreCommandOnStatus, shouldInvokegetCacheName, getOrigin, setOrigingetTopologyId, setTopologyIdcanBlock, getParameters, isReturnValueExpected, perform, setParameterspublic static final byte COMMAND_ID
public TotalOrderVersionedPrepareCommand(String cacheName, GlobalTransaction gtx, List<WriteCommand> modifications, boolean onePhase)
public TotalOrderVersionedPrepareCommand(String cacheName)
public byte getCommandId()
ReplicableCommandgetCommandId in interface ReplicableCommandgetCommandId in class VersionedPrepareCommandpublic void markAsOnePhaseCommit()
TotalOrderPrepareCommandorg.infinispan.commands.tx.CommitCommand is received before the org.infinispan.commands.tx.PrepareCommand.markAsOnePhaseCommit in interface TotalOrderPrepareCommandpublic void markSkipWriteSkewCheck()
TotalOrderPrepareCommandorg.infinispan.commands.tx.CommitCommand is received before the org.infinispan.commands.tx.PrepareCommand.markSkipWriteSkewCheck in interface TotalOrderPrepareCommandpublic boolean skipWriteSkewCheck()
skipWriteSkewCheck in interface TotalOrderPrepareCommandtrue when the write skew check is not needed.public TotalOrderRemoteTransactionState getOrCreateState()
TotalOrderPrepareCommandTotalOrderRemoteTransactionState associated with this transaction, creating one if no one was
associated to this transaction.getOrCreateState in interface TotalOrderPrepareCommandTotalOrderRemoteTransactionState associated with this transaction.Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.