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
cacheName, configuration, globalTx, icc, invoker, txTable
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, containsModificationType, copy, existModifications, getAffectedKeys, getModifications, getModificationsCount, hasModifications, initialize, isOnePhaseCommit, isReplayEntryWrapping, perform, setReplayEntryWrapping, writesToASingleKey
equals, getCacheName, getConfiguration, getGlobalTransaction, getOrigin, hashCode, ignoreCommandOnStatus, init, injectComponents, invalidRemoteTxReturnValue, markTransactionAsRemote, setOrigin, shouldInvoke, visitRemoteTransaction
public 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()
ReplicableCommand
getCommandId
in interface ReplicableCommand
getCommandId
in class PrepareCommand
public Object[] getParameters()
ReplicableCommand
getParameters
in interface ReplicableCommand
getParameters
in class PrepareCommand
public void setParameters(int commandId, Object[] args)
ReplicableCommand
CommandsFactory
to create a command from raw data read off a stream.setParameters
in interface ReplicableCommand
setParameters
in class PrepareCommand
commandId
- 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()
ReplicableCommand
ResponseGenerator
may choose to simply return null to save on marshalling costs.isReturnValueExpected
in interface ReplicableCommand
isReturnValueExpected
in class PrepareCommand
public String toString()
toString
in class PrepareCommand
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.