Class TextCASCommand
- java.lang.Object
-
- net.rubyeye.xmemcached.command.Command
-
- net.rubyeye.xmemcached.command.text.TextStoreCommand
-
- net.rubyeye.xmemcached.command.text.TextCASCommand
-
- All Implemented Interfaces:
WriteMessage,StoreCommand
public class TextCASCommand extends TextStoreCommand
CAS command for text protocol- Author:
- dennis
-
-
Field Summary
-
Fields inherited from class net.rubyeye.xmemcached.command.text.TextStoreCommand
cas, expTime, value
-
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 TextCASCommand(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)-
Methods inherited from class net.rubyeye.xmemcached.command.text.TextStoreCommand
encode, encodeValue, getCas, getExpTime, getTranscoder, getValue, setCas, setExpTime, setTranscoder, setValue
-
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
-
TextCASCommand
public TextCASCommand(String key, byte[] keyBytes, CommandType cmdType, CountDownLatch latch, int exp, long cas, Object value, boolean noreply, Transcoder transcoder)
-
-
Method Detail
-
decode
public final boolean decode(MemcachedTCPSession session, ByteBuffer buffer)
- Overrides:
decodein classTextStoreCommand
-
-