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, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitinitcanBlock, invoke, invokeAsync, isSuccessfulpublic 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 CacheRpcCommandinvokeAsync in class AbstractTransactionBoundaryCommandThrowablepublic Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
VisitableCommandctx - invocation contextvisitor - visitor to acceptThrowable - in the event of problemspublic void visitRemoteTransaction(RemoteTransaction tx)
visitRemoteTransaction in class AbstractTransactionBoundaryCommandpublic byte getCommandId()
ReplicableCommandpublic String toString()
toString in class AbstractTransactionBoundaryCommandCopyright © 2022 JBoss by Red Hat. All rights reserved.