public class CommitCommand extends AbstractTransactionBoundaryCommand
VisitableCommand.LoadType
Modifier and Type | Field and Description |
---|---|
static byte |
COMMAND_ID |
cacheName, globalTx
Constructor and Description |
---|
CommitCommand(ByteString cacheName) |
CommitCommand(ByteString cacheName,
GlobalTransaction gtx) |
Modifier and Type | Method and Description |
---|---|
Object |
acceptVisitor(InvocationContext ctx,
Visitor visitor)
Accept a visitor, and return the result of accepting this visitor.
|
void |
addIracMetadata(int segment,
IracMetadata metadata) |
byte |
getCommandId()
Used by marshallers to convert this command into an id for streaming.
|
IracMetadata |
getIracMetadata(int segment) |
protected Object |
invalidRemoteTxReturnValue(TransactionTable txTable)
This is what is returned to remote callers when an invalid RemoteTransaction is encountered.
|
void |
readFrom(ObjectInput input)
Reads this instance from the stream written by
ReplicableCommand.writeTo(ObjectOutput) . |
String |
toString() |
void |
writeTo(ObjectOutput output)
Writes this instance to the
ObjectOutput . |
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 CommitCommand(ByteString cacheName, GlobalTransaction gtx)
public CommitCommand(ByteString cacheName)
public Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
VisitableCommand
ctx
- invocation contextvisitor
- visitor to acceptThrowable
- in the event of problemsprotected Object invalidRemoteTxReturnValue(TransactionTable txTable)
AbstractTransactionBoundaryCommand
invalidRemoteTxReturnValue
in class AbstractTransactionBoundaryCommand
public byte getCommandId()
ReplicableCommand
public String toString()
toString
in class AbstractTransactionBoundaryCommand
public void writeTo(ObjectOutput output) throws IOException
ReplicableCommand
ObjectOutput
.writeTo
in interface ReplicableCommand
writeTo
in class AbstractTransactionBoundaryCommand
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 AbstractTransactionBoundaryCommand
input
- the stream to read.IOException
- if an error occurred during the I/O.ClassNotFoundException
- if it tries to load an undefined class.public void addIracMetadata(int segment, IracMetadata metadata)
public IracMetadata getIracMetadata(int segment)
Copyright © 2021 JBoss by Red Hat. All rights reserved.