|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- type of object returned from the operation on success.public interface AsyncCallback<T>
Receives notification when an asynchronous operation has finished.
Many storage provider interface operations use this type to signal completion or failure status of an operation that runs asynchronously to the caller.
Only one of onSuccess(Object)
or onFailure(DhtException)
should be invoked.
Method Summary | |
---|---|
void |
onFailure(DhtException error)
Notification the operation failed. |
void |
onSuccess(T result)
Notification the operation completed. |
Method Detail |
---|
void onSuccess(T result)
result
- the result value from the operation.void onFailure(DhtException error)
error
- a description of the error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |