Class TextStoreCommand
- java.lang.Object
-
- net.rubyeye.xmemcached.command.Command
-
- net.rubyeye.xmemcached.command.text.TextStoreCommand
-
- All Implemented Interfaces:
WriteMessage,StoreCommand
- Direct Known Subclasses:
KestrelSetCommand,TextCASCommand
public class TextStoreCommand extends Command implements StoreCommand
Store command for text protocol- Author:
- dennis
-
-
Field Summary
Fields Modifier and Type Field Description protected longcasprotected intexpTimeprotected Objectvalue-
Fields inherited from class net.rubyeye.xmemcached.command.Command
cancel, commandType, exception, ioBuffer, key, keyBytes, latch, mergeCount, noreply, REQUEST_MAGIC_NUMBER, RESPONSE_MAGIC_NUMBER, result, status, transcoder, writeFuture
-
-
Constructor Summary
Constructors Constructor Description TextStoreCommand(String key, byte[] keyBytes, CommandType cmdType, CountDownLatch latch, int exp, long cas, Object value, boolean noreply, Transcoder transcoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandecode(MemcachedTCPSession session, ByteBuffer buffer)voidencode()protected CachedDataencodeValue()longgetCas()intgetExpTime()TranscodergetTranscoder()ObjectgetValue()voidsetCas(long cas)voidsetExpTime(int exp)voidsetTranscoder(Transcoder transcoder)voidsetValue(Object value)-
Methods inherited from class net.rubyeye.xmemcached.command.Command
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
-
-
-
-
Field Detail
-
expTime
protected int expTime
-
cas
protected long cas
-
value
protected Object value
-
-
Constructor Detail
-
TextStoreCommand
public TextStoreCommand(String key, byte[] keyBytes, CommandType cmdType, CountDownLatch latch, int exp, long cas, Object value, boolean noreply, Transcoder transcoder)
-
-
Method Detail
-
getExpTime
public final int getExpTime()
-
setExpTime
public final void setExpTime(int exp)
-
getCas
public final long getCas()
-
setCas
public final void setCas(long cas)
-
getValue
public final Object getValue()
- Specified by:
getValuein interfaceStoreCommand
-
setValue
public final void setValue(Object value)
- Specified by:
setValuein interfaceStoreCommand
-
getTranscoder
public final Transcoder getTranscoder()
- Overrides:
getTranscoderin classCommand
-
setTranscoder
public final void setTranscoder(Transcoder transcoder)
- Overrides:
setTranscoderin classCommand
-
decode
public boolean decode(MemcachedTCPSession session, ByteBuffer buffer)
-
encodeValue
protected CachedData encodeValue()
-
-