com.schooner.MemCached.command
Class StorageCommand

java.lang.Object
  extended by com.schooner.MemCached.command.Command
      extended by com.schooner.MemCached.command.StorageCommand

public class StorageCommand
extends Command

This command implements the set command using memcached UDP protocol.

Since:
2.5.0
Author:
Meng Li
See Also:
com.schooner.Memcached.StorageCommand

Field Summary
static byte[] B_RETURN
           
 byte[] BLAND_DATA_SIZE
           
static org.slf4j.Logger log
           
static byte[] NOT_STORED
           
static byte[] STORED
           
 
Fields inherited from class com.schooner.MemCached.command.Command
B_NEXTLINE, DELIMITER, RETURN, textLine
 
Constructor Summary
StorageCommand(String cmdname, String key, Object value, Date expiry, Integer hashCode, Long casUnique)
          set request textline: "set [noreply]\r\n"
StorageCommand(String cmdname, String key, Object value, Date expiry, Integer hashCode, Long casUnique, TransCoder transCoder)
          set request textline: "set [noreply]\r\n"
 
Method Summary
 short request(SchoonerSockIO sock)
           
 boolean response(SchoonerSockIO sock, short rid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static org.slf4j.Logger log

STORED

public static final byte[] STORED

NOT_STORED

public static final byte[] NOT_STORED

BLAND_DATA_SIZE

public final byte[] BLAND_DATA_SIZE

B_RETURN

public static final byte[] B_RETURN
Constructor Detail

StorageCommand

public StorageCommand(String cmdname,
                      String key,
                      Object value,
                      Date expiry,
                      Integer hashCode,
                      Long casUnique)
set request textline: "set [noreply]\r\n"


StorageCommand

public StorageCommand(String cmdname,
                      String key,
                      Object value,
                      Date expiry,
                      Integer hashCode,
                      Long casUnique,
                      TransCoder transCoder)
set request textline: "set [noreply]\r\n"

Method Detail

request

public short request(SchoonerSockIO sock)
              throws IOException
Overrides:
request in class Command
Throws:
IOException

response

public boolean response(SchoonerSockIO sock,
                        short rid)
                 throws IOException
Throws:
IOException


Copyright © 2012 Schooner Information Technology. All Rights Reserved.