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
-
-
Field Summary
Fields Modifier and Type Field Description protected longcasprotected intexpTimeprotected java.lang.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(java.lang.String key, byte[] keyBytes, CommandType cmdType, java.util.concurrent.CountDownLatch latch, int exp, long cas, java.lang.Object value, boolean noreply, Transcoder transcoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandecode(MemcachedTCPSession session, java.nio.ByteBuffer buffer)voidencode()protected CachedDataencodeValue()longgetCas()private java.lang.StringgetCommandName()intgetExpTime()TranscodergetTranscoder()java.lang.ObjectgetValue()voidsetCas(long cas)voidsetExpTime(int exp)voidsetTranscoder(Transcoder transcoder)voidsetValue(java.lang.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
-
-
-
-
Constructor Detail
-
TextStoreCommand
public TextStoreCommand(java.lang.String key, byte[] keyBytes, CommandType cmdType, java.util.concurrent.CountDownLatch latch, int exp, long cas, java.lang.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 java.lang.Object getValue()
- Specified by:
getValuein interfaceStoreCommand
-
setValue
public final void setValue(java.lang.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, java.nio.ByteBuffer buffer)
-
getCommandName
private java.lang.String getCommandName()
-
encodeValue
protected CachedData encodeValue()
-
-