public class GetCallbackWrapper extends 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(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(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 © 2019. All rights reserved.