public class TimeoutCompleteListener extends CyclicTimeout implements Response.CompleteListener
| Constructor and Description |
|---|
TimeoutCompleteListener(Scheduler scheduler) |
| Modifier and Type | Method and Description |
|---|---|
void |
onComplete(Result result)
Callback method invoked when the request and the response have been processed,
either successfully or not.
|
void |
onTimeoutExpired()
Invoked when the timeout expires.
|
cancel, destroy, getScheduler, schedulepublic TimeoutCompleteListener(Scheduler scheduler)
public void onTimeoutExpired()
CyclicTimeoutInvoked when the timeout expires.
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 © 2010 - 2020 Adobe. All Rights Reserved