public class CommitCommand extends AbstractTransactionBoundaryCommand
Modifier and Type | Field and Description |
---|---|
static byte |
COMMAND_ID |
Constructor and Description |
---|
CommitCommand(String cacheName) |
CommitCommand(String 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.
|
byte |
getCommandId()
Used by marshallers to convert this command into an id for streaming.
|
Object |
perform(InvocationContext ctx)
Performs the primary function of the command.
|
String |
toString() |
canBlock, equals, getCacheName, getGlobalTransaction, getOrigin, getParameters, getRemoteTransaction, getTopologyId, hashCode, ignoreCommandOnStatus, init, invalidRemoteTxReturnValue, isReturnValueExpected, markTransactionAsRemote, setOrigin, setParameters, setTopologyId, shouldInvoke, visitRemoteTransaction
public static final byte COMMAND_ID
public CommitCommand(String cacheName, GlobalTransaction gtx)
public CommitCommand(String cacheName)
public Object perform(InvocationContext ctx) throws Throwable
ReplicableCommand
perform
in interface ReplicableCommand
perform
in class AbstractTransactionBoundaryCommand
ctx
- invocation contextThrowable
- in the event of problems.public Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
VisitableCommand
ctx
- invocation contextvisitor
- visitor to acceptThrowable
- in the event of problemspublic byte getCommandId()
ReplicableCommand
public String toString()
toString
in class AbstractTransactionBoundaryCommand
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.