GetCallbackWrapper Class Reference

Inherits net::spy::memcached::ops::GetOperation::Callback.

Collaboration diagram for GetCallbackWrapper:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void complete ()
 GetCallbackWrapper (int k, GetOperation.Callback c)
void gotData (String key, int flags, byte[] data)
void receivedStatus (OperationStatus status)

Private Attributes

GetOperation.Callback cb = null
boolean completed = false
int remainingKeys = 0

Static Private Attributes

static final OperationStatus END


Detailed Description

Wrapper callback for use in optimized gets.

Constructor & Destructor Documentation

GetCallbackWrapper ( int  k,
GetOperation.Callback  c 
)


Member Function Documentation

void complete (  ) 

Called whenever an operation completes.

Implements OperationCallback.

void gotData ( String  key,
int  flags,
byte[]  data 
)

Callback for each result from a get.

Parameters:
key the key that was retrieved
flags the flags for this value
data the data stored under this key

Implements GetOperation.Callback.

void receivedStatus ( OperationStatus  status  ) 

Method invoked with the status when the operation is complete.

Parameters:
line the line containing the final status of the operation

Implements OperationCallback.


Member Data Documentation

GetOperation.Callback cb = null [private]

boolean completed = false [private]

final OperationStatus END [static, private]

Initial value:

                new OperationStatus(true, "END")

int remainingKeys = 0 [private]


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

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