public abstract class TextGetCommand extends Command implements MergeCommandsAware, AssocCommandAware, MapReturnValueAware
Modifier and Type | Class and Description |
---|---|
static class |
TextGetCommand.ParseStatus |
Modifier and Type | Field and Description |
---|---|
protected List<Command> |
assocCommands
When MemcachedClient merge get commands,those commans which have the same key will be merged
into one get command.The result command's assocCommands contains all these commands with the
same key.
|
protected Map<Object,Command> |
mergeCommands |
protected Map<String,CachedData> |
returnValues |
protected boolean |
wasFirst |
cancel, commandType, exception, ioBuffer, key, keyBytes, latch, mergeCount, noreply, REQUEST_MAGIC_NUMBER, RESPONSE_MAGIC_NUMBER, result, status, transcoder, writeFuture
Constructor and Description |
---|
TextGetCommand(String key,
byte[] keyBytes,
CommandType cmdType,
CountDownLatch latch) |
Modifier and Type | Method and Description |
---|---|
boolean |
decode(MemcachedTCPSession session,
ByteBuffer buffer) |
abstract void |
dispatch() |
void |
encode() |
List<Command> |
getAssocCommands() |
Map<Object,Command> |
getMergeCommands() |
TextGetCommand.ParseStatus |
getParseStatus() |
Map<String,CachedData> |
getReturnValues() |
void |
setAssocCommands(List<Command> assocCommands) |
void |
setMergeCommands(Map<Object,Command> mergeCommands) |
void |
setParseStatus(TextGetCommand.ParseStatus parseStatus) |
void |
setReturnValues(Map<String,CachedData> returnValues) |
cancel, countDownLatch, decodeError, decodeError, decodeError, decodeError, getCommandType, getCopiedMergeCount, getException, getIoBuffer, getKey, getKeyBytes, getLatch, getMergeCount, getMessage, getResult, getStatus, getTranscoder, getWriteBuffer, getWriteFuture, isAdded, isCancel, isNoreply, isWriting, setAdded, setCommandType, setException, setIoBuffer, setKey, setKeyBytes, setLatch, setMergeCount, setNoreply, setResult, setStatus, setTranscoder, setWriteBuffer, setWriteFuture, toString, writing
protected Map<String,CachedData> returnValues
protected List<Command> assocCommands
protected boolean wasFirst
public TextGetCommand(String key, byte[] keyBytes, CommandType cmdType, CountDownLatch latch)
public final Map<Object,Command> getMergeCommands()
getMergeCommands
in interface MergeCommandsAware
public final void setMergeCommands(Map<Object,Command> mergeCommands)
setMergeCommands
in interface MergeCommandsAware
public final List<Command> getAssocCommands()
getAssocCommands
in interface AssocCommandAware
public final void setAssocCommands(List<Command> assocCommands)
setAssocCommands
in interface AssocCommandAware
public TextGetCommand.ParseStatus getParseStatus()
public void setParseStatus(TextGetCommand.ParseStatus parseStatus)
public final boolean decode(MemcachedTCPSession session, ByteBuffer buffer)
public final Map<String,CachedData> getReturnValues()
getReturnValues
in interface MapReturnValueAware
public final void setReturnValues(Map<String,CachedData> returnValues)
public abstract void dispatch()
Copyright © 2021. All rights reserved.