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 |
RESEND_PREPAREcacheName, configuration, globalTx, icc, invoker, txTable| 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, toStringequals, getCacheName, getConfiguration, getGlobalTransaction, getOrigin, hashCode, ignoreCommandOnStatus, init, injectComponents, isReturnValueExpected, markTransactionAsRemote, perform, setOrigin, shouldInvoke, visitRemoteTransactionpublic 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()
ReplicableCommandgetCommandId in interface ReplicableCommandgetCommandId in class CommitCommandpublic Object[] getParameters()
ReplicableCommandgetParameters in interface ReplicableCommandgetParameters in class AbstractTransactionBoundaryCommandpublic void setParameters(int commandId,
Object[] args)
ReplicableCommandCommandsFactory to create a command from raw data read off a stream.setParameters in interface ReplicableCommandsetParameters in class AbstractTransactionBoundaryCommandcommandId - 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 © 2012 JBoss by Red Hat. All Rights Reserved.