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
Store command for text protocol
-
Field Summary
FieldsFields inherited from class Command
cancel, commandType, exception, ioBuffer, key, keyBytes, latch, mergeCount, noreply, REQUEST_MAGIC_NUMBER, RESPONSE_MAGIC_NUMBER, result, status, transcoder, writeFuture -
Constructor Summary
ConstructorsConstructorDescriptionTextStoreCommand(String key, byte[] keyBytes, CommandType cmdType, CountDownLatch latch, int exp, long cas, Object value, boolean noreply, Transcoder transcoder) -
Method Summary
Modifier and TypeMethodDescriptionbooleandecode(MemcachedTCPSession session, ByteBuffer buffer) final voidencode()protected CachedDatafinal longgetCas()private Stringfinal intfinal Transcoderfinal ObjectgetValue()final voidsetCas(long cas) final voidsetExpTime(int exp) final voidsetTranscoder(Transcoder transcoder) final voidMethods inherited from class 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 Details
-
expTime
protected int expTime -
cas
protected long cas -
value
-
-
Constructor Details
-
TextStoreCommand
public TextStoreCommand(String key, byte[] keyBytes, CommandType cmdType, CountDownLatch latch, int exp, long cas, Object value, boolean noreply, Transcoder transcoder)
-
-
Method Details
-
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
- Specified by:
getValuein interfaceStoreCommand
-
setValue
- Specified by:
setValuein interfaceStoreCommand
-
getTranscoder
- Overrides:
getTranscoderin classCommand
-
setTranscoder
- Overrides:
setTranscoderin classCommand
-
decode
-
getCommandName
-
encode
-
encodeValue
-