Class GetConfigurationOperation

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

public class GetConfigurationOperation extends org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation<CounterConfiguration>
A counter configuration for CounterManager.getConfiguration(String).
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<CounterConfiguration>
      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<CounterConfiguration>
    • 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>