public class BinaryGetCommand extends BaseBinaryCommand implements AssocCommandAware
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 |
---|
BinaryGetCommand(String key,
byte[] keyBytes,
CommandType cmdType,
CountDownLatch latch,
OpCode opCode,
boolean noreply) |
Modifier and Type | Method and Description |
---|---|
protected void |
fillExtras(CachedData data) |
protected void |
fillValue(CachedData data) |
protected boolean |
finish() |
List<Command> |
getAssocCommands() |
protected byte |
getExtrasLength() |
String |
getResponseKey() |
protected int |
getValueLength(CachedData data) |
protected long |
readCAS(ByteBuffer buffer) |
protected boolean |
readExtras(ByteBuffer buffer,
int extrasLength) |
protected void |
readHeader(ByteBuffer buffer)
Optimistic,if the value length is 0,then skip remaining buffer,set result as null
|
protected boolean |
readKey(ByteBuffer buffer,
int keyLength) |
protected boolean |
readValue(ByteBuffer buffer,
int bodyLength,
int keyLength,
int extrasLength) |
void |
setAssocCommands(List<Command> assocCommands) |
void |
setResponseKey(String responseKey) |
decode, encode, fillKey, getCas, getCasValue, getExpTime, getKeyLength, getOpaque, getOpCode, getResponseStatus, getTranscoder, getValue, 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 BinaryGetCommand(String key, byte[] keyBytes, CommandType cmdType, CountDownLatch latch, OpCode opCode, boolean noreply)
public final String getResponseKey()
public final void setResponseKey(String responseKey)
public final List<Command> getAssocCommands()
getAssocCommands
in interface AssocCommandAware
public final void setAssocCommands(List<Command> assocCommands)
setAssocCommands
in interface AssocCommandAware
protected void readHeader(ByteBuffer buffer)
readHeader
in class BaseBinaryCommand
protected boolean finish()
finish
in class BaseBinaryCommand
protected boolean readKey(ByteBuffer buffer, int keyLength)
readKey
in class BaseBinaryCommand
protected boolean readValue(ByteBuffer buffer, int bodyLength, int keyLength, int extrasLength)
readValue
in class BaseBinaryCommand
protected boolean readExtras(ByteBuffer buffer, int extrasLength)
readExtras
in class BaseBinaryCommand
protected void fillExtras(CachedData data)
fillExtras
in class BaseBinaryCommand
protected void fillValue(CachedData data)
fillValue
in class BaseBinaryCommand
protected byte getExtrasLength()
getExtrasLength
in class BaseBinaryCommand
protected int getValueLength(CachedData data)
getValueLength
in class BaseBinaryCommand
protected long readCAS(ByteBuffer buffer)
readCAS
in class BaseBinaryCommand
Copyright © 2021. All rights reserved.