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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
TextCASCommand.FailStatus
-
Field Summary
Fields Modifier and Type Field Description private TextCASCommand.FailStatus
failStatus
-
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(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 boolean
decode(MemcachedTCPSession session, java.nio.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
-
-
-
-
Field Detail
-
failStatus
private TextCASCommand.FailStatus failStatus
-
-
Constructor Detail
-
TextCASCommand
public TextCASCommand(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
-
decode
public final boolean decode(MemcachedTCPSession session, java.nio.ByteBuffer buffer)
- Overrides:
decode
in classTextStoreCommand
-
-