com.hazelcast.ascii.memcache
Class TouchCommand

java.lang.Object
  extended by com.hazelcast.ascii.AbstractTextCommand
      extended by com.hazelcast.ascii.memcache.TouchCommand
All Implemented Interfaces:
TextCommand, SocketReadable, SocketWritable

public class TouchCommand
extends AbstractTextCommand

User: sancar Date: 3/8/13 Time: 1:54 PM


Field Summary
 
Fields inherited from class com.hazelcast.ascii.AbstractTextCommand
type
 
Constructor Summary
TouchCommand(TextCommandConstants.TextCommandType type, String key, int expiration, boolean noReply)
           
 
Method Summary
 int getExpiration()
           
 String getKey()
           
 boolean readFrom(ByteBuffer source)
           
 void setResponse(byte[] value)
           
 boolean shouldReply()
           
 boolean writeTo(ByteBuffer destination)
          Asks the SocketWritable to write its content to the destination ByteBuffer.
 
Methods inherited from class com.hazelcast.ascii.AbstractTextCommand
getRequestId, getSocketTextReader, getSocketTextWriter, getType, init, isUrgent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TouchCommand

public TouchCommand(TextCommandConstants.TextCommandType type,
                    String key,
                    int expiration,
                    boolean noReply)
Method Detail

writeTo

public boolean writeTo(ByteBuffer destination)
Description copied from interface: SocketWritable
Asks the SocketWritable to write its content to the destination ByteBuffer.

Parameters:
destination - the ByteBuffer to write to.
Returns:
todo: unclear what return value means.

readFrom

public boolean readFrom(ByteBuffer source)

shouldReply

public boolean shouldReply()
Specified by:
shouldReply in interface TextCommand
Overrides:
shouldReply in class AbstractTextCommand

getKey

public String getKey()

getExpiration

public int getExpiration()

setResponse

public void setResponse(byte[] value)


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.