public class GetCallbackWrapper extends java.lang.Object implements GetOperation.Callback
| Constructor and Description |
|---|
GetCallbackWrapper(int k,
GetOperation.Callback c) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete()
Called whenever an operation completes.
|
void |
gotData(java.lang.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.
|
public GetCallbackWrapper(int k,
GetOperation.Callback c)
public void gotData(java.lang.String key,
int flags,
byte[] data)
GetOperation.CallbackgotData in interface GetOperation.Callbackkey - the key that was retrievedflags - the flags for this valuedata - the data stored under this keypublic void receivedStatus(OperationStatus status)
OperationCallbackreceivedStatus in interface OperationCallbackstatus - the result of the operationpublic void complete()
OperationCallbackcomplete in interface OperationCallbackCopyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.