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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Collection<GetOperation.Callback> private final Map<String, Collection<GetOperation.Callback>> -
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.
-
Field Details
-
callbacks
-
allCallbacks
-
-
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()
-