public class VersionedCommitCommand extends CommitCommand
CommitCommand
except that version information is also carried by this command, used by
optimistically transactional caches making use of write skew checking when using IsolationLevel.REPEATABLE_READ
.Modifier and Type | Field and Description |
---|---|
static byte |
COMMAND_ID |
Constructor and Description |
---|
VersionedCommitCommand() |
VersionedCommitCommand(String cacheName) |
VersionedCommitCommand(String cacheName,
GlobalTransaction gtx) |
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 |
getUpdatedVersions() |
void |
setParameters(int commandId,
Object[] args)
Used by the
CommandsFactory to create a command from raw data read off a stream. |
void |
setUpdatedVersions(EntryVersionsMap updatedVersions) |
acceptVisitor, invalidRemoteTxReturnValue, perform, toString
equals, getCacheName, getGlobalTransaction, getOrigin, getTopologyId, hashCode, ignoreCommandOnStatus, init, isReturnValueExpected, markTransactionAsRemote, setOrigin, setTopologyId, shouldInvoke, visitRemoteTransaction
public static final byte COMMAND_ID
public VersionedCommitCommand()
public VersionedCommitCommand(String cacheName, GlobalTransaction gtx)
public VersionedCommitCommand(String cacheName)
public EntryVersionsMap getUpdatedVersions()
public void setUpdatedVersions(EntryVersionsMap updatedVersions)
public byte getCommandId()
ReplicableCommand
getCommandId
in interface ReplicableCommand
getCommandId
in class CommitCommand
public Object[] getParameters()
ReplicableCommand
getParameters
in interface ReplicableCommand
getParameters
in class AbstractTransactionBoundaryCommand
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 AbstractTransactionBoundaryCommand
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 argsCopyright © 2017 JBoss, a division of Red Hat. All Rights Reserved.