Class IsDefinedOperation

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

public class IsDefinedOperation extends org.infinispan.client.hotrod.impl.operations.AbstractNoCacheHotRodOperation<Boolean>
A counter operation for CounterManager.isDefined(String).
Since:
9.2
Author:
Pedro Ruivo
  • Constructor Details

    • IsDefinedOperation

      public IsDefinedOperation(String counterName)
  • Method Details

    • createResponse

      public Boolean 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>
    • 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<T>
      Overrides:
      writeOperationRequest in class org.infinispan.client.hotrod.impl.operations.AbstractHotRodOperation<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>