java.util.EventListener, Response.CompleteListener, Response.ResponseListener, Destroyablepublic class TimeoutCompleteListener extends CyclicTimeout implements Response.CompleteListener
| Constructor | Description |
|---|---|
TimeoutCompleteListener(Scheduler scheduler) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
onComplete(Result result) |
Callback method invoked when the request and the response have been processed,
either successfully or not.
|
void |
onTimeoutExpired() |
cancel, destroy, getScheduler, schedulepublic TimeoutCompleteListener(Scheduler scheduler)
public void onTimeoutExpired()
onTimeoutExpired in class CyclicTimeoutpublic void onComplete(Result result)
Response.CompleteListener
The result parameter contains the request, the response, and eventual failures.
Requests may complete after response, for example in case of big uploads that are
discarded or read asynchronously by the server.
This method is always invoked after Response.SuccessListener.onSuccess(Response) or
Response.FailureListener.onFailure(Response, Throwable), and only when request indicates that
it is completed.
onComplete in interface Response.CompleteListenerresult - the result of the request / response exchangeCopyright © 1995–2018 Webtide. All rights reserved.