|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Callback<T>
Interface for receiving asynchronous callbacks.
For each request with an asynchronous callback,
either handleResult(Object)
or #handleError(Exception)
will be invoked.
Method Summary | |
---|---|
void |
handleError(Throwable error)
Receives an error. |
void |
handleResult(T result)
Receives a callback result. |
Method Detail |
---|
void handleResult(T result)
result
- the result returned in the callback.void handleError(Throwable error)
error
- the error returned in the callback.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |