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, visitRemoteTransactionclone, finalize, getClass, notify, notifyAll, wait, wait, waitinitcanBlock, invoke, invokeAsync, isSuccessfulpublic static final byte COMMAND_ID
public CommitCommand(ByteString cacheName, GlobalTransaction gtx)
public CommitCommand(ByteString cacheName)
public Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
VisitableCommandctx - invocation contextvisitor - visitor to acceptThrowable - in the event of problemsprotected Object invalidRemoteTxReturnValue(TransactionTable txTable)
AbstractTransactionBoundaryCommandinvalidRemoteTxReturnValue in class AbstractTransactionBoundaryCommandpublic byte getCommandId()
ReplicableCommandpublic String toString()
toString in class AbstractTransactionBoundaryCommandpublic 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 void addIracMetadata(int segment,
IracMetadata metadata)
public IracMetadata getIracMetadata(int segment)
Copyright © 2022 JBoss by Red Hat. All rights reserved.