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

    Fields
    Modifier and Type
    Field
    Description
    protected long
     
    protected org.infinispan.commons.tx.XidImpl
     

    Fields inherited from class org.infinispan.commands.remote.BaseRpcCommand

    cacheName, origin
  • Constructor Summary

    Constructors
    Constructor
    Description
    ForwardRollbackCommand(org.infinispan.util.ByteString cacheName)
     
    ForwardRollbackCommand(org.infinispan.util.ByteString cacheName, org.infinispan.commons.tx.XidImpl xid, long timeout)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    byte
     
    invokeAsync(org.infinispan.factories.ComponentRegistry componentRegistry)
     
    boolean
     
    void
     
     
    void
     

    Methods inherited from class org.infinispan.commands.remote.BaseRpcCommand

    getCacheName, getOrigin, setOrigin

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods 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

      public String toString()
      Overrides:
      toString in class org.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