net.rubyeye.xmemcached.command.text
Class TextStoreCommand

java.lang.Object
  extended by net.rubyeye.xmemcached.command.Command
      extended by net.rubyeye.xmemcached.command.text.TextStoreCommand
All Implemented Interfaces:
WriteMessage
Direct Known Subclasses:
KestrelSetCommand, TextCASCommand

public class TextStoreCommand
extends Command

Store command for text protocol

Author:
dennis

Field Summary
protected  long cas
           
protected  int expTime
           
protected  java.lang.Object 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
TextStoreCommand(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
 boolean decode(MemcachedTCPSession session, java.nio.ByteBuffer buffer)
           
 void encode()
           
protected  CachedData encodeValue()
           
 long getCas()
           
 int getExpTime()
           
 Transcoder getTranscoder()
           
 java.lang.Object getValue()
           
 void setCas(long cas)
           
 void setExpTime(int exp)
           
 void setTranscoder(Transcoder transcoder)
           
 void setValue(java.lang.Object value)
           
 
Methods inherited from class net.rubyeye.xmemcached.command.Command
cancel, countDownLatch, decodeError, decodeError, decodeError, decodeError, getCommandType, getException, getIoBuffer, getKey, getKeyBytes, getLatch, getMergeCount, getMessage, getResult, getStatus, getWriteBuffer, getWriteFuture, isCancel, isNoreply, isWriting, setCommandType, setException, setIoBuffer, setKey, setKeyBytes, setLatch, setMergeCount, setNoreply, setResult, setStatus, setWriteBuffer, setWriteFuture, toString, writing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

expTime

protected int expTime

cas

protected long cas

value

protected java.lang.Object value
Constructor Detail

TextStoreCommand

public TextStoreCommand(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

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

public final java.lang.Object getValue()

setValue

public final void setValue(java.lang.Object value)

getTranscoder

public final Transcoder getTranscoder()
Overrides:
getTranscoder in class Command

setTranscoder

public final void setTranscoder(Transcoder transcoder)
Overrides:
setTranscoder in class Command

decode

public boolean decode(MemcachedTCPSession session,
                      java.nio.ByteBuffer buffer)
Specified by:
decode in class Command

encode

public final void encode()
Specified by:
encode in class Command

encodeValue

protected CachedData encodeValue()


Copyright © 2011. All Rights Reserved.