Class RollbackCommand
java.lang.Object
org.infinispan.commands.tx.AbstractTransactionBoundaryCommand
org.infinispan.commands.tx.RollbackCommand
- All Implemented Interfaces:
CacheRpcCommand, ReplicableCommand, TopologyAffectedCommand, TracedCommand, TransactionBoundaryCommand, VisitableCommand, VersionAware
Command corresponding to a transaction rollback.
- Since:
- 4.0
- Author:
- Manik Surtani (manik@jboss.org)
-
Nested Class Summary
Nested classes/interfaces inherited from interface VisitableCommand
VisitableCommand.LoadType -
Field Summary
Fields inherited from class AbstractTransactionBoundaryCommand
cacheName, globalTx -
Constructor Summary
ConstructorsConstructorDescriptionRollbackCommand(int topologyId, ByteString cacheName, GlobalTransaction globalTransaction) 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.invokeAsync(ComponentRegistry registry) Invoke the command asynchronously.Returns aNodeVersionrepresenting the Infinispan version in which this command was added.toString()voidMethods inherited from class AbstractTransactionBoundaryCommand
equals, getCacheName, getGlobalTransaction, getOrigin, getTopologyId, hashCode, invalidRemoteTxReturnValue, isReturnValueExpected, loadType, markTransactionAsRemote, setOrigin, setTopologyIdMethods inherited from interface ReplicableCommand
getCommandId, isSuccessful, logThrowable, readFrom, writeToMethods inherited from interface TracedCommand
getOperationName, getSpanAttributes, setSpanAttributesMethods inherited from interface VisitableCommand
init
-
Constructor Details
-
RollbackCommand
-
RollbackCommand
@ProtoFactory public RollbackCommand(int topologyId, ByteString cacheName, GlobalTransaction globalTransaction)
-
-
Method Details
-
invokeAsync
Description copied from interface:CacheRpcCommandInvoke the command asynchronously.- Specified by:
invokeAsyncin interfaceCacheRpcCommand- Specified by:
invokeAsyncin interfaceVisitableCommand- Overrides:
invokeAsyncin classAbstractTransactionBoundaryCommand- Throws:
Throwable
-
acceptVisitor
Description copied from interface:VisitableCommandAccept 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:
visitRemoteTransactionin classAbstractTransactionBoundaryCommand
-
supportedSince
Description copied from interface:ReplicableCommandReturns aNodeVersionrepresenting the Infinispan version in which this command was added. This value is used to ensure that when the cluster contains different Infinispan versions, only commands compatible with the oldest version are transmitted.Abstract classes should not implement this method as the version should be specific to an individual implementation. Similarly, implementations which extend another
ReplicableCommandshould always override this method.- Returns:
- a
NodeVersioncorresponding to the Infinispan version this command was added.
-
toString
- Overrides:
toStringin classAbstractTransactionBoundaryCommand
-