MultiGetOperationImpl Class Reference

Inherits net::spy::memcached::protocol::binary::OperationImpl, and net::spy::memcached::ops::GetOperation.

Inherited by OptimizedGetImpl.

Collaboration diagram for MultiGetOperationImpl:

Collaboration graph
[legend]

List of all members.

Public Member Functions

Collection< StringgetKeys ()
void initialize ()
 MultiGetOperationImpl (Collection< String > k, OperationCallback cb)

Protected Member Functions

int addKey (String k)
void finishedPayload (byte[] pl) throws IOException
boolean opaqueIsValid ()

Private Attributes

final Map< Integer, byte[]> bkeys = new HashMap<Integer, byte[]>()
final Map< Integer, Stringkeys = new HashMap<Integer, String>()
final Map< String, Integer > rkeys = new HashMap<String, Integer>()
final int terminalOpaque = generateOpaque()

Static Private Attributes

static final int CMD_GETQ = 9


Constructor & Destructor Documentation

MultiGetOperationImpl ( Collection< String k,
OperationCallback  cb 
)


Member Function Documentation

int addKey ( String  k  )  [protected]

Add a key (and return its new opaque value).

void finishedPayload ( byte[]  pl  )  throws IOException [protected]

Reimplemented from OperationImpl.

Collection<String> getKeys (  ) 

Get the keys requested in this GetOperation.

Implements GetOperation.

void initialize (  ) 

Initialize this operation. This is used to prepare output byte buffers and stuff.

Implements Operation.

boolean opaqueIsValid (  )  [protected]

Validate an opaque value from the header. This may be overridden from a subclass where the opaque isn't expected to always be the same as the request opaque.

Reimplemented from OperationImpl.


Member Data Documentation

final Map<Integer, byte[]> bkeys = new HashMap<Integer, byte[]>() [private]

final int CMD_GETQ = 9 [static, private]

final Map<Integer, String> keys = new HashMap<Integer, String>() [private]

final Map<String, Integer> rkeys = new HashMap<String, Integer>() [private]

final int terminalOpaque = generateOpaque() [private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:38 2012 for Project Wonder by  doxygen 1.5.8