Class TextIncrDecrCommand

  • All Implemented Interfaces:
    WriteMessage

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

      • delta

        private long delta
      • initial

        private final long initial
    • Constructor Detail

      • TextIncrDecrCommand

        public TextIncrDecrCommand​(java.lang.String key,
                                   byte[] keyBytes,
                                   CommandType cmdType,
                                   java.util.concurrent.CountDownLatch latch,
                                   long delta,
                                   long initial,
                                   boolean noreply)
    • Method Detail

      • getDelta

        public final long getDelta()
      • setDelta

        public final void setDelta​(int delta)
      • encode

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