public class TextStoreCommand extends Command implements StoreCommand
| 限定符和类型 | 字段和说明 |
|---|---|
protected long |
cas |
protected int |
expTime |
protected Object |
value |
cancel, commandType, exception, ioBuffer, key, keyBytes, latch, mergeCount, noreply, REQUEST_MAGIC_NUMBER, RESPONSE_MAGIC_NUMBER, result, status, transcoder, writeFuture| 构造器和说明 |
|---|
TextStoreCommand(String key,
byte[] keyBytes,
CommandType cmdType,
CountDownLatch latch,
int exp,
long cas,
Object value,
boolean noreply,
Transcoder transcoder) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
decode(MemcachedTCPSession session,
ByteBuffer buffer) |
void |
encode() |
protected CachedData |
encodeValue() |
long |
getCas() |
int |
getExpTime() |
Transcoder |
getTranscoder() |
Object |
getValue() |
void |
setCas(long cas) |
void |
setExpTime(int exp) |
void |
setTranscoder(Transcoder transcoder) |
void |
setValue(Object value) |
cancel, 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, writingprotected int expTime
protected long cas
protected Object value
public TextStoreCommand(String key, byte[] keyBytes, CommandType cmdType, CountDownLatch latch, int exp, long cas, Object value, boolean noreply, Transcoder transcoder)
public final int getExpTime()
public final void setExpTime(int exp)
public final long getCas()
public final void setCas(long cas)
public final Object getValue()
getValue 在接口中 StoreCommandpublic final void setValue(Object value)
setValue 在接口中 StoreCommandpublic final Transcoder getTranscoder()
getTranscoder 在类中 Commandpublic final void setTranscoder(Transcoder transcoder)
setTranscoder 在类中 Commandpublic boolean decode(MemcachedTCPSession session, ByteBuffer buffer)
protected CachedData encodeValue()
Copyright © 2013. All Rights Reserved.