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.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
Copyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.