com.hazelcast.ascii.memcache
Class TouchCommand
java.lang.Object
com.hazelcast.ascii.AbstractTextCommand
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
TouchCommand
public TouchCommand(TextCommandConstants.TextCommandType type,
String key,
int expiration,
boolean noReply)
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.