public class RollbackCommand extends AbstractTransactionBoundaryCommand
Modifier and Type | Field and Description |
---|---|
static byte |
COMMAND_ID |
Constructor and Description |
---|
RollbackCommand(String cacheName) |
RollbackCommand(String cacheName,
GlobalTransaction globalTransaction) |
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() |
void |
visitRemoteTransaction(RemoteTransaction tx) |
canBlock, equals, getCacheName, getGlobalTransaction, getOrigin, getParameters, getRemoteTransaction, getTopologyId, hashCode, ignoreCommandOnStatus, init, invalidRemoteTxReturnValue, isReturnValueExpected, markTransactionAsRemote, setOrigin, setParameters, setTopologyId, shouldInvoke
public static final byte COMMAND_ID
public RollbackCommand(String cacheName, GlobalTransaction globalTransaction)
public RollbackCommand(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 void visitRemoteTransaction(RemoteTransaction tx)
visitRemoteTransaction
in class AbstractTransactionBoundaryCommand
public byte getCommandId()
ReplicableCommand
public String toString()
toString
in class AbstractTransactionBoundaryCommand
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.