Class BinaryIncrDecrCommand
java.lang.Object
net.rubyeye.xmemcached.command.Command
net.rubyeye.xmemcached.command.binary.BaseBinaryCommand
net.rubyeye.xmemcached.command.binary.BinaryIncrDecrCommand
- All Implemented Interfaces:
WriteMessage,StoreCommand
Binary incr/decr command
-
Field Summary
FieldsFields inherited from class net.rubyeye.xmemcached.command.binary.BaseBinaryCommand
cas, decodeStatus, DEFAULT_VBUCKET_ID, expTime, EXTRAS_LENGTH, opaque, opCode, responseExtrasLength, responseKeyLength, responseStatus, responseTotalBodyLength, value, vbucketIdFields 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
ConstructorsConstructorDescriptionBinaryIncrDecrCommand(String key, byte[] keyBytes, long amount, long initial, int expTime, CommandType cmdType, boolean noreply) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfillExtras(CachedData data) protected voidfillValue(CachedData data) final longprotected bytefinal longprotected intgetValueLength(CachedData data) protected booleanreadValue(ByteBuffer buffer, int bodyLength, int keyLength, int extrasLength) final voidsetAmount(long amount) final voidsetInitial(long initial) Methods inherited from class net.rubyeye.xmemcached.command.binary.BaseBinaryCommand
decode, encode, fillKey, finish, getCas, getCasValue, getExpTime, getKeyLength, getOpaque, getOpCode, getResponseStatus, getTranscoder, getValue, readCAS, readExtras, readHeader, readKey, readOpaque, readOpCode, readStatus, setCas, setExpTime, setOpaque, setOpCode, setResponseStatus, setTranscoder, setValueMethods inherited from class net.rubyeye.xmemcached.command.Command
cancel, countDownLatch, decodeError, decodeError, decodeError, decodeError, getCommandType, getCopiedMergeCount, getException, getIoBuffer, getKey, getKeyBytes, getLatch, getMergeCount, getMessage, getResult, getStatus, getWriteBuffer, getWriteFuture, isAdded, isCancel, isNoreply, isWriting, setAdded, setCommandType, setException, setIoBuffer, setKey, setKeyBytes, setLatch, setMergeCount, setNoreply, setResult, setStatus, setWriteBuffer, setWriteFuture, toString, writing
-
Field Details
-
amount
private long amount -
initial
private long initial
-
-
Constructor Details
-
BinaryIncrDecrCommand
public BinaryIncrDecrCommand(String key, byte[] keyBytes, long amount, long initial, int expTime, CommandType cmdType, boolean noreply)
-
-
Method Details
-
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
- Overrides:
fillExtrasin classBaseBinaryCommand
-
getExtrasLength
protected byte getExtrasLength()- Overrides:
getExtrasLengthin classBaseBinaryCommand
-
fillValue
- Overrides:
fillValuein classBaseBinaryCommand
-
getValueLength
- Overrides:
getValueLengthin classBaseBinaryCommand
-
readValue
- Overrides:
readValuein classBaseBinaryCommand
-