Package net.spy.memcached.protocol
Class ProxyCallback
java.lang.Object
net.spy.memcached.protocol.ProxyCallback
- All Implemented Interfaces:
GetOperation.Callback,OperationCallback
Proxy callback used for dispatching callbacks over optimized gets.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcomplete()Called whenever an operation completes.voidCallback for each result from a get.intintnumKeys()voidreceivedStatus(OperationStatus status) Method invoked with the status when the operation is complete.
-
Constructor Details
-
ProxyCallback
public ProxyCallback()
-
-
Method Details
-
addCallbacks
-
gotData
Description copied from interface:GetOperation.CallbackCallback for each result from a get.- Specified by:
gotDatain interfaceGetOperation.Callback- Parameters:
key- the key that was retrievedflags- the flags for this valuedata- the data stored under this key
-
receivedStatus
Description copied from interface:OperationCallbackMethod invoked with the status when the operation is complete.- Specified by:
receivedStatusin interfaceOperationCallback- Parameters:
status- the result of the operation
-
complete
public void complete()Description copied from interface:OperationCallbackCalled whenever an operation completes.- Specified by:
completein interfaceOperationCallback
-
numKeys
public int numKeys() -
numCallbacks
public int numCallbacks()
-