public interface AsyncHandler<Request extends ApiServiceRequest,Result>
| Modifier and Type | Method and Description |
|---|---|
void |
onError(java.lang.Exception ex)
Invoked after asynchronous request.
|
void |
onSuccess(Request request,
Result result)
Invoked after an asynchronous request has completed successfully.
|
void onError(java.lang.Exception ex)
ex - the exception was thrown.void onSuccess(Request request, Result result)
request - The initial request created by the callerresult - The successful result of the executed operation.