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.VisitableCommand.LoadType| Modifier and Type | Field and Description |
|---|---|
static byte |
COMMAND_ID |
cacheName, globalTx| Constructor and Description |
|---|
VersionedCommitCommand() |
VersionedCommitCommand(ByteString cacheName) |
VersionedCommitCommand(ByteString cacheName,
GlobalTransaction gtx) |
| Modifier and Type | Method and Description |
|---|---|
byte |
getCommandId()
Used by marshallers to convert this command into an id for streaming.
|
Map<Object,IncrementableEntryVersion> |
getUpdatedVersions() |
void |
readFrom(ObjectInput input)
Reads this instance from the stream written by
ReplicableCommand.writeTo(ObjectOutput). |
void |
setUpdatedVersions(Map<Object,IncrementableEntryVersion> updatedVersions) |
String |
toString() |
void |
writeTo(ObjectOutput output)
Writes this instance to the
ObjectOutput. |
acceptVisitor, addIracMetadata, getIracMetadata, invalidRemoteTxReturnValueequals, getCacheName, getGlobalTransaction, getOrigin, getTopologyId, hashCode, invokeAsync, isReturnValueExpected, loadType, markTransactionAsRemote, setOrigin, setTopologyId, visitRemoteTransactionclone, finalize, getClass, notify, notifyAll, wait, wait, waitinitcanBlock, invoke, invokeAsync, isSuccessfulpublic static final byte COMMAND_ID
public VersionedCommitCommand()
public VersionedCommitCommand(ByteString cacheName, GlobalTransaction gtx)
public VersionedCommitCommand(ByteString cacheName)
public Map<Object,IncrementableEntryVersion> getUpdatedVersions()
public void setUpdatedVersions(Map<Object,IncrementableEntryVersion> updatedVersions)
public byte getCommandId()
ReplicableCommandgetCommandId in interface ReplicableCommandgetCommandId in class CommitCommandpublic void writeTo(ObjectOutput output) throws IOException
ReplicableCommandObjectOutput.writeTo in interface ReplicableCommandwriteTo in class CommitCommandoutput - 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 CommitCommandinput - 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 © 2022 JBoss by Red Hat. All rights reserved.