|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.memcached.protocol.ProxyCallback
public class ProxyCallback
Proxy callback used for dispatching callbacks over optimized gets.
| Constructor Summary | |
|---|---|
ProxyCallback()
|
|
| Method Summary | |
|---|---|
void |
addCallbacks(GetOperation o)
|
void |
complete()
Called whenever an operation completes. |
void |
gotData(java.lang.String key,
int flags,
byte[] data)
Callback for each result from a get. |
int |
numCallbacks()
|
int |
numKeys()
|
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 ProxyCallback()
| Method Detail |
|---|
public void addCallbacks(GetOperation o)
public void gotData(java.lang.String key,
int flags,
byte[] data)
GetOperation.Callback
gotData in interface GetOperation.Callbackkey - the key that was retrievedflags - the flags for this valuedata - the data stored under this keypublic void receivedStatus(OperationStatus status)
OperationCallback
receivedStatus in interface OperationCallbackstatus - the result of the operationpublic void complete()
OperationCallback
complete in interface OperationCallbackpublic int numKeys()
public int numCallbacks()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||