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.
|
EntryVersionsMap |
getUpdatedVersions() |
void |
readFrom(ObjectInput input)
Reads this instance from the stream written by
ReplicableCommand.writeTo(ObjectOutput). |
void |
setUpdatedVersions(EntryVersionsMap updatedVersions) |
String |
toString() |
void |
writeTo(ObjectOutput output)
Writes this instance to the
ObjectOutput. |
acceptVisitor, invalidRemoteTxReturnValuecanBlock, equals, getCacheName, getGlobalTransaction, getOrigin, getRemoteTransaction, getTopologyId, hashCode, ignoreCommandOnStatus, init, isReturnValueExpected, markTransactionAsRemote, perform, readsExistingValues, setOrigin, setTopologyId, shouldInvoke, visitRemoteTransactionclone, finalize, getClass, notify, notifyAll, wait, wait, waitalwaysReadsExistingValuesgetParameters, setParameterspublic 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 void writeTo(ObjectOutput output) throws IOException
ReplicableCommandObjectOutput.writeTo in interface ReplicableCommandwriteTo in class AbstractTransactionBoundaryCommandoutput - 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 AbstractTransactionBoundaryCommandinput - the stream to read.IOException - if an error occurred during the I/O.ClassNotFoundException - if it tries to load an undefined class.public String toString()
toString in class CommitCommandCopyright © 2025 JBoss, a division of Red Hat. All rights reserved.