Class ForgetTransactionOperation

All Implemented Interfaces:
Runnable, CompletionStage<Void>, Future<Void>, HotRodConstants, ChannelOperation

public class ForgetTransactionOperation extends RetryOnFailureOperation<Void>
It forgets the transaction identified by Xid in the server.

It affects all caches involved in the transaction. It is requested from XAResource.forget(Xid).

Since:
14.0
  • Constructor Details

    • ForgetTransactionOperation

      public ForgetTransactionOperation(OperationContext operationContext, Xid xid)
  • Method Details

    • acceptResponse

      public void acceptResponse(io.netty.buffer.ByteBuf buf, short status, HeaderDecoder decoder)
      Specified by:
      acceptResponse in class HotRodOperation<Void>
    • executeOperation

      protected void executeOperation(io.netty.channel.Channel channel)
      Description copied from class: RetryOnFailureOperation
      Perform the operation-specific request/response I/O on the specified channel. If an error occurs during I/O, this class will detect it and retry the operation with a different channel by invoking the executeOperation method again.
      Specified by:
      executeOperation in class RetryOnFailureOperation<Void>
      Parameters:
      channel - the channel to use for I/O