Class TextTouchCommand
- java.lang.Object
-
- net.rubyeye.xmemcached.command.Command
-
- net.rubyeye.xmemcached.command.text.TextTouchCommand
-
- All Implemented Interfaces:
WriteMessage
public class TextTouchCommand extends Command
Touch command for touch protocol.- Since:
- 1.3.8
-
-
Field Summary
Fields Modifier and Type Field Description private int
expTime
private static java.lang.String
NOT_FOUND
private static java.lang.String
TOUCHED
-
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 TextTouchCommand(java.lang.String key, byte[] keyBytes, CommandType cmdType, java.util.concurrent.CountDownLatch latch, int expTime, boolean noreply)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
decode(MemcachedTCPSession session, java.nio.ByteBuffer buffer)
void
encode()
int
getExpTime()
void
setExpTime(int expTime)
-
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, getTranscoder, getWriteBuffer, getWriteFuture, isAdded, isCancel, isNoreply, isWriting, setAdded, setCommandType, setException, setIoBuffer, setKey, setKeyBytes, setLatch, setMergeCount, setNoreply, setResult, setStatus, setTranscoder, setWriteBuffer, setWriteFuture, toString, writing
-
-
-
-
Field Detail
-
NOT_FOUND
private static final java.lang.String NOT_FOUND
- See Also:
- Constant Field Values
-
TOUCHED
private static final java.lang.String TOUCHED
- See Also:
- Constant Field Values
-
expTime
private int expTime
-
-
Constructor Detail
-
TextTouchCommand
public TextTouchCommand(java.lang.String key, byte[] keyBytes, CommandType cmdType, java.util.concurrent.CountDownLatch latch, int expTime, boolean noreply)
-
-
Method Detail
-
getExpTime
public int getExpTime()
-
setExpTime
public void setExpTime(int expTime)
-
decode
public final boolean decode(MemcachedTCPSession session, java.nio.ByteBuffer buffer)
-
-