|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.spy.memcached.protocol.GetCallbackWrapper
public class GetCallbackWrapper
Wrapper callback for use in optimized gets.
Constructor Summary | |
---|---|
GetCallbackWrapper(int k,
GetOperation.Callback c)
|
Method Summary | |
---|---|
void |
complete()
Called whenever an operation completes. |
void |
gotData(String key,
int flags,
byte[] data)
Callback for each result from a get. |
void |
receivedStatus(OperationStatus status)
Method invoked with the status when the operation is complete. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GetCallbackWrapper(int k, GetOperation.Callback c)
Method Detail |
---|
public void gotData(String key, int flags, byte[] data)
GetOperation.Callback
gotData
in interface GetOperation.Callback
key
- the key that was retrievedflags
- the flags for this valuedata
- the data stored under this keypublic void receivedStatus(OperationStatus status)
OperationCallback
receivedStatus
in interface OperationCallback
status
- the result of the operationpublic void complete()
OperationCallback
complete
in interface OperationCallback
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |