public class TotalOrderNonVersionedPrepareCommand extends PrepareCommand implements TotalOrderPrepareCommand
| Modifier and Type | Field and Description |
|---|---|
static byte |
COMMAND_ID |
modifications, notifier, onePhaseCommit, recoveryManager, retriedCommand| Constructor and Description |
|---|
TotalOrderNonVersionedPrepareCommand(String cacheName) |
TotalOrderNonVersionedPrepareCommand(String cacheName,
GlobalTransaction gtx,
List<WriteCommand> commands) |
TotalOrderNonVersionedPrepareCommand(String cacheName,
GlobalTransaction gtx,
WriteCommand... modifications) |
| 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() |
acceptVisitor, copy, createContext, getAffectedKeys, getKeyLockOwner, getKeysToLock, getModifications, getRemoteTransaction, hasModifications, hasSkipLocking, hasZeroLockAcquisition, initialize, isOnePhaseCommit, isReplayEntryWrapping, isRetriedCommand, isReturnValueExpected, perform, readFrom, setReplayEntryWrapping, setRetriedCommand, toString, writeTocanBlock, equals, getCacheName, getGlobalTransaction, getOrigin, getTopologyId, hashCode, ignoreCommandOnStatus, init, invalidRemoteTxReturnValue, markTransactionAsRemote, readsExistingValues, setOrigin, setTopologyId, shouldInvoke, visitRemoteTransactionclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetModificationsgetGlobalTransaction, markTransactionAsRemoteacceptVisitor, alwaysReadsExistingValues, ignoreCommandOnStatus, readsExistingValues, shouldInvokegetCacheName, getOrigin, setOrigingetTopologyId, setTopologyIdcanBlock, getParameters, isReturnValueExpected, perform, readFrom, setParameters, writeTopublic static final byte COMMAND_ID
public TotalOrderNonVersionedPrepareCommand(String cacheName, GlobalTransaction gtx, WriteCommand... modifications)
public TotalOrderNonVersionedPrepareCommand(String cacheName, GlobalTransaction gtx, List<WriteCommand> commands)
public TotalOrderNonVersionedPrepareCommand(String cacheName)
public byte getCommandId()
ReplicableCommandgetCommandId in interface ReplicableCommandgetCommandId in class PrepareCommandpublic 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 © 2024 JBoss, a division of Red Hat. All rights reserved.