Class GetCounterNamesOperation

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

public class GetCounterNamesOperation extends org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation<Collection<String>>
A counter operation for CounterManager.getCounterNames().
Since:
9.2
Author:
Pedro Ruivo
  • Constructor Details

  • Method Details

    • 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<Collection<String>>
      Parameters:
      channel - the channel to use for I/O
    • reset

      protected void reset()
      Overrides:
      reset in class org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation<Collection<String>>
    • 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<Collection<String>>
    • fetchChannelAndInvoke

      protected void fetchChannelAndInvoke(int retryCount, Set<SocketAddress> failedServers)
      Overrides:
      fetchChannelAndInvoke in class org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation<T>
    • 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>