net.rubyeye.xmemcached.command.binary
Class BinaryIncrDecrCommand

java.lang.Object
  extended by net.rubyeye.xmemcached.command.Command
      extended by net.rubyeye.xmemcached.command.binary.BaseBinaryCommand
          extended by net.rubyeye.xmemcached.command.binary.BinaryIncrDecrCommand
All Implemented Interfaces:
WriteMessage

public class BinaryIncrDecrCommand
extends BaseBinaryCommand

Binary incr/decr command

Author:
dennis

Field Summary
 
Fields inherited from class net.rubyeye.xmemcached.command.binary.BaseBinaryCommand
cas, decodeStatus, expTime, opaque, opCode, responseExtrasLength, responseKeyLength, responseStatus, responseTotalBodyLength, value
 
Fields inherited from class net.rubyeye.xmemcached.command.Command
cancel, commandType, exception, ioBuffer, key, keyBytes, latch, mergeCount, noreply, REQUEST_MAGIC_NUMBER, RESPONSE_MAGIC_NUMBER, result, status, transcoder, writeFuture
 
Constructor Summary
BinaryIncrDecrCommand(java.lang.String key, byte[] keyBytes, long amount, long initial, int expTime, CommandType cmdType, boolean noreply)
           
 
Method Summary
protected  void fillExtras(CachedData data)
           
protected  void fillValue(CachedData data)
           
 long getAmount()
           
protected  byte getExtrasLength()
           
 long getInitial()
           
protected  int getValueLength(CachedData data)
           
protected  boolean readValue(java.nio.ByteBuffer buffer, int bodyLength, int keyLength, int extrasLength)
           
 void setAmount(long amount)
           
 void setInitial(long initial)
           
 
Methods inherited from class net.rubyeye.xmemcached.command.binary.BaseBinaryCommand
decode, encode, fillCAS, fillHeader, fillKey, finish, getCas, getExpTime, getKeyLength, getOpCode, getResponseStatus, getTranscoder, getValue, readCAS, readExtras, readHeader, readKey, readOpaque, readOpCode, readStatus, setCas, setExpTime, setOpCode, setResponseStatus, setTranscoder, setValue
 
Methods inherited from class net.rubyeye.xmemcached.command.Command
cancel, countDownLatch, decodeError, decodeError, decodeError, decodeError, getCommandType, getException, getIoBuffer, getKey, getKeyBytes, getLatch, getMergeCount, getMessage, getResult, getStatus, getWriteBuffer, getWriteFuture, isCancel, isNoreply, isWriting, setCommandType, setException, setIoBuffer, setKey, setKeyBytes, setLatch, setMergeCount, setNoreply, setResult, setStatus, setWriteBuffer, setWriteFuture, toString, writing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BinaryIncrDecrCommand

public BinaryIncrDecrCommand(java.lang.String key,
                             byte[] keyBytes,
                             long amount,
                             long initial,
                             int expTime,
                             CommandType cmdType,
                             boolean noreply)
Method Detail

getAmount

public final long getAmount()

setAmount

public final void setAmount(long amount)

getInitial

public final long getInitial()

setInitial

public final void setInitial(long initial)

fillExtras

protected void fillExtras(CachedData data)
Overrides:
fillExtras in class BaseBinaryCommand

getExtrasLength

protected byte getExtrasLength()
Overrides:
getExtrasLength in class BaseBinaryCommand

fillValue

protected void fillValue(CachedData data)
Overrides:
fillValue in class BaseBinaryCommand

getValueLength

protected int getValueLength(CachedData data)
Overrides:
getValueLength in class BaseBinaryCommand

readValue

protected boolean readValue(java.nio.ByteBuffer buffer,
                            int bodyLength,
                            int keyLength,
                            int extrasLength)
Overrides:
readValue in class BaseBinaryCommand


Copyright © 2011. All Rights Reserved.