public class TouchCommand extends AbstractTextCommand
type| Constructor and Description | 
|---|
TouchCommand(TextCommandConstants.TextCommandType type,
            String key,
            int expiration,
            boolean noReply)  | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
getRequestId, getSocketTextReader, getSocketTextWriter, getType, init, isUrgent, toStringpublic TouchCommand(TextCommandConstants.TextCommandType type, String key, int expiration, boolean noReply)
public boolean writeTo(ByteBuffer destination)
SocketWritabledestination - the ByteBuffer to write to.public boolean readFrom(ByteBuffer source)
public boolean shouldReply()
shouldReply in interface TextCommandshouldReply in class AbstractTextCommandpublic String getKey()
public int getExpiration()
public void setResponse(byte[] value)
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.