com.hazelcast.internal.ascii.memcache
public class GetCommand extends AbstractTextCommand
type
Constructor and Description |
---|
GetCommand(String key) |
GetCommand(TextCommandConstants.TextCommandType type,
String key) |
Modifier and Type | Method and Description |
---|---|
String |
getKey() |
boolean |
readFrom(ByteBuffer cb) |
void |
setValue(MemcacheEntry entry,
boolean singleGet) |
String |
toString() |
boolean |
writeTo(ByteBuffer bb)
Asks the SocketWritable to write its content to the destination ByteBuffer.
|
getRequestId, getSocketTextReader, getSocketTextWriter, getType, init, isUrgent, shouldReply
public GetCommand(TextCommandConstants.TextCommandType type, String key)
public GetCommand(String key)
public String getKey()
public boolean readFrom(ByteBuffer cb)
public void setValue(MemcacheEntry entry, boolean singleGet)
public boolean writeTo(ByteBuffer bb)
SocketWritable
bb
- the ByteBuffer to write to.public String toString()
toString
in class AbstractTextCommand
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.