com.hazelcast.ascii.memcache
Class GetCommand

java.lang.Object
  extended by com.hazelcast.ascii.AbstractTextCommand
      extended by com.hazelcast.ascii.memcache.GetCommand
All Implemented Interfaces:
TextCommand, SocketReadable, SocketWritable
Direct Known Subclasses:
PartialGetCommand

public class GetCommand
extends AbstractTextCommand


Field Summary
 
Fields inherited from class com.hazelcast.ascii.AbstractTextCommand
type
 
Constructor Summary
GetCommand(String key)
           
GetCommand(TextCommandConstants.TextCommandType type, String key)
           
 
Method Summary
 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.
 
Methods inherited from class com.hazelcast.ascii.AbstractTextCommand
getRequestId, getSocketTextReader, getSocketTextWriter, getType, init, isUrgent, shouldReply
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GetCommand

public GetCommand(TextCommandConstants.TextCommandType type,
                  String key)

GetCommand

public GetCommand(String key)
Method Detail

getKey

public String getKey()

readFrom

public boolean readFrom(ByteBuffer cb)

setValue

public void setValue(MemcacheEntry entry,
                     boolean singleGet)

writeTo

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

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

toString

public String toString()
Overrides:
toString in class AbstractTextCommand


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