Class TextIncrDecrCommand

java.lang.Object
net.rubyeye.xmemcached.command.Command
net.rubyeye.xmemcached.command.text.TextIncrDecrCommand
All Implemented Interfaces:
WriteMessage

public class TextIncrDecrCommand extends Command
Incr/Decr command for text protocol
  • Field Details

    • delta

      private long delta
    • initial

      private final long initial
  • Constructor Details

    • TextIncrDecrCommand

      public TextIncrDecrCommand(String key, byte[] keyBytes, CommandType cmdType, CountDownLatch latch, long delta, long initial, boolean noreply)
  • Method Details

    • getDelta

      public final long getDelta()
    • setDelta

      public final void setDelta(int delta)
    • decode

      public final boolean decode(MemcachedTCPSession session, ByteBuffer buffer)
      Specified by:
      decode in class Command
    • encode

      public final void encode()
      Specified by:
      encode in class Command