Class ForwardCommitCommand
- java.lang.Object
-
- org.infinispan.commands.remote.BaseRpcCommand
-
- org.infinispan.server.hotrod.command.tx.ForwardCommitCommand
-
- All Implemented Interfaces:
org.infinispan.commands.remote.CacheRpcCommand,org.infinispan.commands.ReplicableCommand
public class ForwardCommitCommand extends org.infinispan.commands.remote.BaseRpcCommandACacheRpcCommandimplementation to forward the commit request from a client to the member that run the transaction.- Since:
- 9.1
- Author:
- Pedro Ruivo
-
-
Constructor Summary
Constructors Constructor Description ForwardCommitCommand(org.infinispan.util.ByteString cacheName)ForwardCommitCommand(org.infinispan.util.ByteString cacheName, org.infinispan.commons.tx.XidImpl xid, long timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanBlock()bytegetCommandId()CompletionStage<?>invokeAsync(org.infinispan.factories.ComponentRegistry componentRegistry)booleanisReturnValueExpected()voidreadFrom(ObjectInput input)StringtoString()voidwriteTo(ObjectOutput output)-
Methods inherited from class org.infinispan.commands.remote.BaseRpcCommand
getCacheName, getOrigin, setOrigin
-
-
-
-
Method Detail
-
getCommandId
public byte getCommandId()
-
invokeAsync
public CompletionStage<?> invokeAsync(org.infinispan.factories.ComponentRegistry componentRegistry) throws Throwable
- Throws:
Throwable
-
toString
public String toString()
- Overrides:
toStringin classorg.infinispan.commands.remote.BaseRpcCommand
-
isReturnValueExpected
public boolean isReturnValueExpected()
-
canBlock
public boolean canBlock()
-
writeTo
public void writeTo(ObjectOutput output) throws IOException
- Throws:
IOException
-
readFrom
public void readFrom(ObjectInput input) throws IOException
- Throws:
IOException
-
-