public class BinaryIncrDecrCommand extends BaseBinaryCommand
cas, decodeStatus, expTime, opaque, opCode, responseExtrasLength, responseKeyLength, responseStatus, responseTotalBodyLength, value, vbucketId
cancel, commandType, exception, ioBuffer, key, keyBytes, latch, mergeCount, noreply, REQUEST_MAGIC_NUMBER, RESPONSE_MAGIC_NUMBER, result, status, transcoder, writeFuture
Constructor and Description |
---|
BinaryIncrDecrCommand(String key,
byte[] keyBytes,
long amount,
long initial,
int expTime,
CommandType cmdType,
boolean noreply) |
Modifier and Type | Method and Description |
---|---|
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(ByteBuffer buffer,
int bodyLength,
int keyLength,
int extrasLength) |
void |
setAmount(long amount) |
void |
setInitial(long initial) |
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, setValue
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
public BinaryIncrDecrCommand(String key, byte[] keyBytes, long amount, long initial, int expTime, CommandType cmdType, boolean noreply)
public final long getAmount()
public final void setAmount(long amount)
public final long getInitial()
public final void setInitial(long initial)
protected void fillExtras(CachedData data)
fillExtras
in class BaseBinaryCommand
protected byte getExtrasLength()
getExtrasLength
in class BaseBinaryCommand
protected void fillValue(CachedData data)
fillValue
in class BaseBinaryCommand
protected int getValueLength(CachedData data)
getValueLength
in class BaseBinaryCommand
protected boolean readValue(ByteBuffer buffer, int bodyLength, int keyLength, int extrasLength)
readValue
in class BaseBinaryCommand
Copyright © 2021. All rights reserved.