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| 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.
|
Object[] |
getParameters()
Used by marshallers to stream this command across a network
|
EntryVersionsMap |
getVersionsSeen() |
boolean |
isReturnValueExpected()
If true, a return value will be provided when performed remotely.
|
void |
setParameters(int commandId,
Object[] args)
Used by the
CommandsFactory to create a command from raw data read off a stream. |
void |
setVersionsSeen(EntryVersionsMap versionsSeen) |
String |
toString() |
acceptVisitor, copy, getAffectedKeys, getModifications, hasModifications, initialize, isOnePhaseCommit, isReplayEntryWrapping, perform, setReplayEntryWrapping, writesToASingleKeyequals, getCacheName, getGlobalTransaction, getOrigin, getTopologyId, hashCode, ignoreCommandOnStatus, init, invalidRemoteTxReturnValue, markTransactionAsRemote, setOrigin, setTopologyId, shouldInvoke, visitRemoteTransactionpublic 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 Object[] getParameters()
ReplicableCommandgetParameters in interface ReplicableCommandgetParameters in class PrepareCommandpublic void setParameters(int commandId,
Object[] args)
ReplicableCommandCommandsFactory to create a command from raw data read off a stream.setParameters in interface ReplicableCommandsetParameters in class PrepareCommandcommandId - command id to set. This is usually unused but *could* be used in the event of a command having
multiple IDs, such as PutKeyValueCommand.args - object array of argspublic 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 © 2017 JBoss, a division of Red Hat. All Rights Reserved.