Package org.infinispan.commands.tx
Class RollbackCommand
java.lang.Object
org.infinispan.commands.tx.AbstractTransactionBoundaryCommand
org.infinispan.commands.tx.RollbackCommand
- All Implemented Interfaces:
CacheRpcCommand
,ReplicableCommand
,TopologyAffectedCommand
,TransactionBoundaryCommand
,VisitableCommand
Command corresponding to a transaction rollback.
- Since:
- 4.0
- Author:
- Manik Surtani ([email protected])
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.infinispan.commands.VisitableCommand
VisitableCommand.LoadType
-
Field Summary
FieldsFields inherited from class org.infinispan.commands.tx.AbstractTransactionBoundaryCommand
cacheName, globalTx
-
Constructor Summary
ConstructorsConstructorDescriptionRollbackCommand
(ByteString cacheName) RollbackCommand
(ByteString cacheName, GlobalTransaction globalTransaction) -
Method Summary
Modifier and TypeMethodDescriptionacceptVisitor
(InvocationContext ctx, Visitor visitor) Accept a visitor, and return the result of accepting this visitor.byte
Used by marshallers to convert this command into an id for streaming.invokeAsync
(ComponentRegistry registry) Invoke the command asynchronously.toString()
void
Methods inherited from class org.infinispan.commands.tx.AbstractTransactionBoundaryCommand
equals, getCacheName, getGlobalTransaction, getOrigin, getTopologyId, hashCode, invalidRemoteTxReturnValue, isReturnValueExpected, loadType, markTransactionAsRemote, readFrom, setOrigin, setTopologyId, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.infinispan.commands.ReplicableCommand
canBlock, invoke, invokeAsync, isSuccessful, logThrowable
Methods inherited from interface org.infinispan.commands.VisitableCommand
init
-
Field Details
-
COMMAND_ID
public static final byte COMMAND_ID- See Also:
-
-
Constructor Details
-
RollbackCommand
-
RollbackCommand
-
-
Method Details
-
invokeAsync
Description copied from interface:CacheRpcCommand
Invoke the command asynchronously.This method replaces
ReplicableCommand.invoke()
for remote execution. The default implementation andReplicableCommand.invoke()
will be removed in future versions.- Specified by:
invokeAsync
in interfaceCacheRpcCommand
- Overrides:
invokeAsync
in classAbstractTransactionBoundaryCommand
- Throws:
Throwable
-
acceptVisitor
Description copied from interface:VisitableCommand
Accept a visitor, and return the result of accepting this visitor.- Parameters:
ctx
- invocation contextvisitor
- visitor to accept- Returns:
- arbitrary return value
- Throws:
Throwable
- in the event of problems
-
visitRemoteTransaction
- Overrides:
visitRemoteTransaction
in classAbstractTransactionBoundaryCommand
-
getCommandId
public byte getCommandId()Description copied from interface:ReplicableCommand
Used by marshallers to convert this command into an id for streaming.- Returns:
- the method id of this command. This is compatible with pre-2.2.0 MethodCall ids.
-
toString
- Overrides:
toString
in classAbstractTransactionBoundaryCommand
-