Class ForwardRollbackCommand
java.lang.Object
org.infinispan.commands.remote.BaseRpcCommand
org.infinispan.server.hotrod.command.tx.ForwardRollbackCommand
- All Implemented Interfaces:
org.infinispan.commands.remote.CacheRpcCommand,org.infinispan.commands.ReplicableCommand
public class ForwardRollbackCommand
extends org.infinispan.commands.remote.BaseRpcCommand
A
CacheRpcCommand implementation to forward the rollback request from a client to the member that run the
transaction.- Since:
- 9.1
- Author:
- Pedro Ruivo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longprotected org.infinispan.commons.tx.XidImplFields inherited from class org.infinispan.commands.remote.BaseRpcCommand
cacheName, origin -
Constructor Summary
ConstructorsConstructorDescriptionForwardRollbackCommand(org.infinispan.util.ByteString cacheName) ForwardRollbackCommand(org.infinispan.util.ByteString cacheName, org.infinispan.commons.tx.XidImpl xid, long timeout) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanBlock()byteinvokeAsync(org.infinispan.factories.ComponentRegistry componentRegistry) booleanvoidreadFrom(ObjectInput input) toString()voidwriteTo(ObjectOutput output) Methods inherited from class org.infinispan.commands.remote.BaseRpcCommand
getCacheName, getOrigin, setOriginMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.infinispan.commands.ReplicableCommand
invoke, invokeAsync, isSuccessful, logThrowable
-
Field Details
-
xid
protected org.infinispan.commons.tx.XidImpl xid -
timeout
protected long timeout
-
-
Constructor Details
-
ForwardRollbackCommand
public ForwardRollbackCommand(org.infinispan.util.ByteString cacheName) -
ForwardRollbackCommand
public ForwardRollbackCommand(org.infinispan.util.ByteString cacheName, org.infinispan.commons.tx.XidImpl xid, long timeout)
-
-
Method Details
-
getCommandId
public byte getCommandId() -
invokeAsync
public CompletionStage<?> invokeAsync(org.infinispan.factories.ComponentRegistry componentRegistry) throws Throwable - Throws:
Throwable
-
toString
- Overrides:
toStringin classorg.infinispan.commands.remote.BaseRpcCommand
-
isReturnValueExpected
public boolean isReturnValueExpected() -
canBlock
public boolean canBlock() -
writeTo
- Throws:
IOException
-
readFrom
- Throws:
IOException
-