public interface MultiCallback
MultiCall
,
Response
,
Request
,
MultiResponse
Modifier and Type | Method and Description |
---|---|
void |
onComplete(MultiCall call,
MultiResponse response)
Fires once only after all the requests have been executed and only if no exceptions were thrown in the process.
|
void |
onFailure(MultiCall call,
java.io.IOException e,
java.util.List<Response> completedResponses)
Fires only once when one of the calls execution has thrown an IOException
|
void |
onResponse(MultiCall call,
int key,
Response response)
Fires each time a request is successful.
|
void onFailure(MultiCall call, java.io.IOException e, java.util.List<Response> completedResponses)
Note that the rest of the calls scheduled for execution will not be executed and onComplete(MultiCall, MultiResponse) will not be called.
void onResponse(MultiCall call, int key, Response response) throws java.io.IOException
void onComplete(MultiCall call, MultiResponse response) throws java.io.IOException
Note that onComplete(MultiCall, MultiResponse) will not fire if onFailure(MultiCall, IOException, List) does.
call
- A reference to the MultiCall objectresponse
- A reference to the MultiResponse objectjava.io.IOException
- On failed IO operations