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, invalidRemoteTxReturnValue
equals, getCacheName, getGlobalTransaction, getOrigin, getTopologyId, hashCode, invokeAsync, isReturnValueExpected, loadType, markTransactionAsRemote, setOrigin, setTopologyId, visitRemoteTransaction
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
init
canBlock, invoke, invokeAsync, isSuccessful
public 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()
ReplicableCommand
getCommandId
in interface ReplicableCommand
getCommandId
in class CommitCommand
public void writeTo(ObjectOutput output) throws IOException
ReplicableCommand
ObjectOutput
.writeTo
in interface ReplicableCommand
writeTo
in class CommitCommand
output
- the stream.IOException
- if an error occurred during the I/O.public void readFrom(ObjectInput input) throws IOException, ClassNotFoundException
ReplicableCommand
ReplicableCommand.writeTo(ObjectOutput)
.readFrom
in interface ReplicableCommand
readFrom
in class CommitCommand
input
- 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 CommitCommand
Copyright © 2021 JBoss by Red Hat. All rights reserved.