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 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
ConstructorsConstructorDescriptionTextStoreCommand
(String key, byte[] keyBytes, CommandType cmdType, CountDownLatch latch, int exp, long cas, Object value, boolean noreply, Transcoder transcoder) -
Method Summary
Modifier and TypeMethodDescriptionboolean
decode
(MemcachedTCPSession session, ByteBuffer buffer) final void
encode()
protected CachedData
final long
getCas()
private String
final int
final Transcoder
final Object
getValue()
final void
setCas
(long cas) final void
setExpTime
(int exp) final void
setTranscoder
(Transcoder transcoder) final void
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 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:
getValue
in interfaceStoreCommand
-
setValue
- Specified by:
setValue
in interfaceStoreCommand
-
getTranscoder
- Overrides:
getTranscoder
in classCommand
-
setTranscoder
- Overrides:
setTranscoder
in classCommand
-
decode
-
getCommandName
-
encode
public final void encode() -
encodeValue
-