Package net.spy.memcached.protocol
Class GetCallbackWrapper
java.lang.Object
net.spy.memcached.protocol.GetCallbackWrapper
- All Implemented Interfaces:
GetOperation.Callback,OperationCallback
Wrapper callback for use in optimized gets.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcomplete()Called whenever an operation completes.voidCallback for each result from a get.voidreceivedStatus(OperationStatus status) Method invoked with the status when the operation is complete.
-
Constructor Details
-
GetCallbackWrapper
-
-
Method Details
-
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
-