public class RollbackCommand extends AbstractTransactionBoundaryCommand
VisitableCommand.LoadType
Modifier and Type | Field and Description |
---|---|
static byte |
COMMAND_ID |
cacheName, globalTx
Constructor and Description |
---|
RollbackCommand(ByteString cacheName) |
RollbackCommand(ByteString 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.
|
CompletionStage<?> |
invokeAsync(ComponentRegistry registry)
Invoke the command asynchronously.
|
String |
toString() |
void |
visitRemoteTransaction(RemoteTransaction tx) |
equals, getCacheName, getGlobalTransaction, getOrigin, getTopologyId, hashCode, invalidRemoteTxReturnValue, isReturnValueExpected, loadType, markTransactionAsRemote, readFrom, setOrigin, setTopologyId, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
init
canBlock, invoke, invokeAsync, isSuccessful
public static final byte COMMAND_ID
public RollbackCommand(ByteString cacheName, GlobalTransaction globalTransaction)
public RollbackCommand(ByteString cacheName)
public CompletionStage<?> invokeAsync(ComponentRegistry registry) throws Throwable
CacheRpcCommand
This method replaces ReplicableCommand.invoke()
for remote execution.
The default implementation and ReplicableCommand.invoke()
will be removed in future versions.
invokeAsync
in interface CacheRpcCommand
invokeAsync
in class AbstractTransactionBoundaryCommand
Throwable
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 © 2021 JBoss by Red Hat. All rights reserved.