public class TimeoutCompleteListener extends Object implements Response.CompleteListener, Runnable
Constructor and Description |
---|
TimeoutCompleteListener(Request request) |
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)
public void cancel()
Copyright © 1995-2017 Webtide. All Rights Reserved.