Class AddListenerOperation

java.lang.Object
java.util.concurrent.CompletableFuture<io.netty.channel.Channel>
org.infinispan.client.hotrod.impl.operations.AbstractHotRodOperation<io.netty.channel.Channel>
org.infinispan.client.hotrod.impl.operations.AbstractNoCacheHotRodOperation<io.netty.channel.Channel>
org.infinispan.client.hotrod.counter.operation.AddListenerOperation
All Implemented Interfaces:
CompletionStage<io.netty.channel.Channel>, Future<io.netty.channel.Channel>, org.infinispan.client.hotrod.impl.operations.HotRodOperation<io.netty.channel.Channel>, org.infinispan.client.hotrod.impl.protocol.HotRodConstants

public class AddListenerOperation extends org.infinispan.client.hotrod.impl.operations.AbstractNoCacheHotRodOperation<io.netty.channel.Channel>
An add listener operation for StrongCounter.addListener(CounterListener) and WeakCounter.addListener(CounterListener)
Since:
9.2
Author:
Pedro Ruivo
  • Constructor Details

    • AddListenerOperation

      public AddListenerOperation(String counterName, byte[] listenerId)
  • Method Details

    • writeOperationRequest

      public void writeOperationRequest(io.netty.channel.Channel channel, io.netty.buffer.ByteBuf buf, org.infinispan.client.hotrod.impl.protocol.Codec codec)
      Specified by:
      writeOperationRequest in interface org.infinispan.client.hotrod.impl.operations.HotRodOperation<io.netty.channel.Channel>
    • createResponse

      public io.netty.channel.Channel createResponse(io.netty.buffer.ByteBuf buf, short status, org.infinispan.client.hotrod.impl.transport.netty.HeaderDecoder decoder, org.infinispan.client.hotrod.impl.protocol.Codec codec, org.infinispan.client.hotrod.impl.operations.CacheUnmarshaller unmarshaller)
    • requestOpCode

      public short requestOpCode()
    • responseOpCode

      public short responseOpCode()
    • getCacheName

      public String getCacheName()
      Specified by:
      getCacheName in interface org.infinispan.client.hotrod.impl.operations.HotRodOperation<T>
      Overrides:
      getCacheName in class org.infinispan.client.hotrod.impl.operations.AbstractNoCacheHotRodOperation<T>
    • getCacheNameBytes

      public byte[] getCacheNameBytes()
      Specified by:
      getCacheNameBytes in interface org.infinispan.client.hotrod.impl.operations.HotRodOperation<T>
      Overrides:
      getCacheNameBytes in class org.infinispan.client.hotrod.impl.operations.AbstractNoCacheHotRodOperation<T>
    • getRoutingObject

      public Object getRoutingObject()
      Specified by:
      getRoutingObject in interface org.infinispan.client.hotrod.impl.operations.HotRodOperation<T>
      Overrides:
      getRoutingObject in class org.infinispan.client.hotrod.impl.operations.AbstractNoCacheHotRodOperation<T>
    • addParams

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