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

public class SetOperation extends org.infinispan.client.hotrod.impl.operations.AbstractNoCacheHotRodOperation<Long>
A set operation for StrongCounter.getAndSet(long)
Since:
15
Author:
Dipanshu Gupta
  • Constructor Details

    • SetOperation

      public SetOperation(String counterName, long value, boolean useConsistentHash)
  • 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<Long>
    • createResponse

      public Long 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>