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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Collection
<GetOperation.Callback> private final Map
<String, Collection<GetOperation.Callback>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
complete()
Called whenever an operation completes.void
Callback for each result from a get.int
int
numKeys()
void
receivedStatus
(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.Callback
Callback for each result from a get.- Specified by:
gotData
in 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:OperationCallback
Method invoked with the status when the operation is complete.- Specified by:
receivedStatus
in interfaceOperationCallback
- Parameters:
status
- the result of the operation
-
complete
public void complete()Description copied from interface:OperationCallback
Called whenever an operation completes.- Specified by:
complete
in interfaceOperationCallback
-
numKeys
public int numKeys() -
numCallbacks
public int numCallbacks()
-