Class AddListenerOperation

java.lang.Object
java.util.concurrent.CompletableFuture<Boolean>
org.infinispan.client.hotrod.impl.operations.HotRodOperation<Boolean>
org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation<Boolean>
org.infinispan.client.hotrod.counter.operation.AddListenerOperation
All Implemented Interfaces:
Runnable, CompletionStage<Boolean>, Future<Boolean>, org.infinispan.client.hotrod.impl.protocol.HotRodConstants, org.infinispan.client.hotrod.impl.transport.netty.ChannelOperation

public class AddListenerOperation extends org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation<Boolean>
Since:
9.2
Author:
Pedro Ruivo
  • Constructor Details

  • Method Details

    • getChannel

      public io.netty.channel.Channel getChannel()
    • executeOperation

      protected void executeOperation(io.netty.channel.Channel channel)
      Description copied from class: org.infinispan.client.hotrod.impl.operations.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 org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation<Boolean>
      Parameters:
      channel - the channel to use for I/O
    • acceptResponse

      public void acceptResponse(io.netty.buffer.ByteBuf buf, short status, org.infinispan.client.hotrod.impl.transport.netty.HeaderDecoder decoder)
      Specified by:
      acceptResponse in class org.infinispan.client.hotrod.impl.operations.HotRodOperation<Boolean>
    • fetchChannelAndInvoke

      protected void fetchChannelAndInvoke(int retryCount, Set<SocketAddress> failedServers)
    • releaseChannel

      public void releaseChannel(io.netty.channel.Channel channel)
      Overrides:
      releaseChannel in class org.infinispan.client.hotrod.impl.operations.HotRodOperation<Boolean>
    • cleanup

      public void cleanup()
    • handleException

      protected Throwable handleException(Throwable cause, io.netty.channel.Channel channel, SocketAddress address)
      Overrides:
      handleException in class org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation<T>
    • addParams

      protected void addParams(StringBuilder sb)
      Overrides:
      addParams in class org.infinispan.client.hotrod.impl.operations.HotRodOperation<T>