public class TextStoreCommand extends Command implements StoreCommand
Modifier and Type | Field and Description |
---|---|
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
Constructor and Description |
---|
TextStoreCommand(String key,
byte[] keyBytes,
CommandType cmdType,
CountDownLatch latch,
int exp,
long cas,
Object value,
boolean noreply,
Transcoder transcoder) |
Modifier and Type | Method and Description |
---|---|
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, isAdded, isCancel, isNoreply, isWriting, setAdded, setCommandType, setException, setIoBuffer, setKey, setKeyBytes, setLatch, setMergeCount, setNoreply, setResult, setStatus, setWriteBuffer, setWriteFuture, toString, writing
protected 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
in interface StoreCommand
public final void setValue(Object value)
setValue
in interface StoreCommand
public final Transcoder getTranscoder()
getTranscoder
in class Command
public final void setTranscoder(Transcoder transcoder)
setTranscoder
in class Command
public boolean decode(MemcachedTCPSession session, ByteBuffer buffer)
protected CachedData encodeValue()
Copyright © 2021. All rights reserved.