public class TimeoutCompleteListener extends Object implements Response.CompleteListener, Runnable
Constructor and Description |
---|
TimeoutCompleteListener(Request request) |
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 |
run() |
boolean |
schedule(Scheduler scheduler) |
public TimeoutCompleteListener(Request request)
public void onComplete(Result result)
Response.CompleteListener
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.CompleteListener
result
- the result of the request / response exchangepublic boolean schedule(Scheduler scheduler)
Copyright © 1995-2015 Webtide. All Rights Reserved.