ProxyCallback Class Reference

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

Collaboration diagram for ProxyCallback:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void addCallbacks (GetOperation o)
void complete ()
void gotData (String key, int flags, byte[] data)
int numCallbacks ()
int numKeys ()
void receivedStatus (OperationStatus status)

Private Attributes

final Collection
< GetOperation.Callback > 
allCallbacks
final Map< String, Collection
< GetOperation.Callback > > 
callbacks


Detailed Description

Proxy callback used for dispatching callbacks over optimized gets.

Member Function Documentation

void addCallbacks ( GetOperation  o  ) 

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.

int numCallbacks (  ) 

int numKeys (  ) 

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

final Collection<GetOperation.Callback> allCallbacks [private]

Initial value:

                new ArrayList<GetOperation.Callback>()

final Map<String, Collection<GetOperation.Callback> > callbacks [private]

Initial value:

                new HashMap<String, Collection<GetOperation.Callback>>()


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