Modifier and Type | Method and Description |
---|---|
void |
onComplete(MultiCall<T,R> call,
java.util.List<R> results)
Fires once only after all the requests were executed successfully and all the responses were received
|
void |
onFailure(MultiCall<T,R> call,
java.io.IOException e,
java.util.List<R> completedResponses)
Fires once only if an exception is thrown during the execution of one of the requests
|
void |
onResponse(MultiCall<T,R> call,
int key,
R response)
Called each time when a response has been received for one of the requests
|
void onFailure(MultiCall<T,R> call, java.io.IOException e, java.util.List<R> completedResponses)
call
- A reference MultiCall object within which one of the calls failede
- The IOException which was throwncompletedResponses
- A List of all the responses that were completed prior to the exceptionvoid onResponse(MultiCall<T,R> call, int key, R response)
call
- A reference for the MultiCall for which one
of the requests has been completed successfullykey
- The number of the response which corresponds to
the number of the request in numerical orderresponse
- The response that was received