public class VersionedPrepareCommand extends PrepareCommand
PrepareCommand except that the transaction originator makes evident the versions of entries touched
and stored in a transaction context so that accurate write skew checks may be performed by the lock owner(s).| Modifier and Type | Field and Description |
|---|---|
static byte |
COMMAND_ID |
modifications, notifier, onePhaseCommit, recoveryManager, retriedCommand| Constructor and Description |
|---|
VersionedPrepareCommand() |
VersionedPrepareCommand(String cacheName) |
VersionedPrepareCommand(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.
|
EntryVersionsMap |
getVersionsSeen() |
boolean |
isReturnValueExpected()
If true, a return value will be provided when performed remotely.
|
void |
readFrom(ObjectInput input)
Reads this instance from the stream written by
ReplicableCommand.writeTo(ObjectOutput). |
void |
setVersionsSeen(EntryVersionsMap versionsSeen) |
String |
toString() |
void |
writeTo(ObjectOutput output)
Writes this instance to the
ObjectOutput. |
acceptVisitor, copy, createContext, getAffectedKeys, getKeyLockOwner, getKeysToLock, getModifications, getRemoteTransaction, hasModifications, hasSkipLocking, hasZeroLockAcquisition, initialize, isOnePhaseCommit, isReplayEntryWrapping, isRetriedCommand, perform, setReplayEntryWrapping, setRetriedCommandcanBlock, equals, getCacheName, getGlobalTransaction, getOrigin, getTopologyId, hashCode, ignoreCommandOnStatus, init, invalidRemoteTxReturnValue, markTransactionAsRemote, readsExistingValues, setOrigin, setTopologyId, shouldInvoke, visitRemoteTransactionclone, finalize, getClass, notify, notifyAll, wait, wait, waitalwaysReadsExistingValuesgetParameters, setParameterspublic static final byte COMMAND_ID
public VersionedPrepareCommand()
public VersionedPrepareCommand(String cacheName, GlobalTransaction gtx, List<WriteCommand> modifications, boolean onePhase)
public VersionedPrepareCommand(String cacheName)
public EntryVersionsMap getVersionsSeen()
public void setVersionsSeen(EntryVersionsMap versionsSeen)
public byte getCommandId()
ReplicableCommandgetCommandId in interface ReplicableCommandgetCommandId in class PrepareCommandpublic void writeTo(ObjectOutput output) throws IOException
ReplicableCommandObjectOutput.writeTo in interface ReplicableCommandwriteTo in class PrepareCommandoutput - the stream.IOException - if an error occurred during the I/O.public void readFrom(ObjectInput input) throws IOException, ClassNotFoundException
ReplicableCommandReplicableCommand.writeTo(ObjectOutput).readFrom in interface ReplicableCommandreadFrom in class PrepareCommandinput - the stream to read.IOException - if an error occurred during the I/O.ClassNotFoundException - if it tries to load an undefined class.public boolean isReturnValueExpected()
ReplicableCommandResponseGenerator
may choose to simply return null to save on marshalling costs.isReturnValueExpected in interface ReplicableCommandisReturnValueExpected in class PrepareCommandpublic String toString()
toString in class PrepareCommandCopyright © 2025 JBoss, a division of Red Hat. All rights reserved.