public class BinaryGetCommand extends BaseBinaryCommand implements AssocCommandAware
cas, decodeStatus, expTime, opaque, opCode, responseExtrasLength, responseKeyLength, responseStatus, responseTotalBodyLength, value, vbucketIdcancel, commandType, exception, ioBuffer, key, keyBytes, latch, mergeCount, noreply, REQUEST_MAGIC_NUMBER, RESPONSE_MAGIC_NUMBER, result, status, transcoder, writeFuture| 构造器和说明 |
|---|
BinaryGetCommand(String key,
byte[] keyBytes,
CommandType cmdType,
CountDownLatch latch,
OpCode opCode,
boolean noreply) |
| 限定符和类型 | 方法和说明 |
|---|---|
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, fillCAS, fillHeader, fillKey, getCas, getExpTime, getKeyLength, getOpaque, getOpCode, getResponseStatus, getTranscoder, getValue, readOpaque, readOpCode, readStatus, setCas, setExpTime, setOpaque, setOpCode, setResponseStatus, setTranscoder, setValuecancel, countDownLatch, decodeError, decodeError, decodeError, decodeError, getCommandType, getCopiedMergeCount, 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, writingpublic 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 在接口中 AssocCommandAwarepublic final void setAssocCommands(List<Command> assocCommands)
setAssocCommands 在接口中 AssocCommandAwareprotected void readHeader(ByteBuffer buffer)
readHeader 在类中 BaseBinaryCommandprotected boolean finish()
finish 在类中 BaseBinaryCommandprotected boolean readKey(ByteBuffer buffer, int keyLength)
readKey 在类中 BaseBinaryCommandprotected boolean readValue(ByteBuffer buffer, int bodyLength, int keyLength, int extrasLength)
readValue 在类中 BaseBinaryCommandprotected boolean readExtras(ByteBuffer buffer, int extrasLength)
readExtras 在类中 BaseBinaryCommandprotected void fillExtras(CachedData data)
fillExtras 在类中 BaseBinaryCommandprotected void fillValue(CachedData data)
fillValue 在类中 BaseBinaryCommandprotected byte getExtrasLength()
getExtrasLength 在类中 BaseBinaryCommandprotected int getValueLength(CachedData data)
getValueLength 在类中 BaseBinaryCommandprotected long readCAS(ByteBuffer buffer)
readCAS 在类中 BaseBinaryCommandCopyright © 2013. All Rights Reserved.