|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CallbackListener<T>
Implement this interface to handle the returned result from an asynchronous call. Note that the onCallback method will still be called in the event of an error. In this case onError will be called first.
Method Summary | |
---|---|
void |
onCallback(T objs)
Handles the result of the call. |
void |
onError(Throwable e)
Handles the result when the call failed. |
Method Detail |
---|
void onCallback(T objs)
objs
- the result of a successful call. Note that if the call failed,
this object may be null or invalid.void onError(Throwable e)
e
- the exception caught in the task execution.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |