Package org.eclipse.jetty.client
Class TimeoutCompleteListener
- java.lang.Object
-
- org.eclipse.jetty.io.CyclicTimeout
-
- org.eclipse.jetty.client.TimeoutCompleteListener
-
- All Implemented Interfaces:
java.util.EventListener,Response.CompleteListener,Response.ResponseListener,Destroyable
@Deprecated public class TimeoutCompleteListener extends CyclicTimeout implements Response.CompleteListener
Deprecated.Do not use it, useCyclicTimeoutsinstead.
-
-
Constructor Summary
Constructors Constructor Description TimeoutCompleteListener(Scheduler scheduler)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidonComplete(Result result)Deprecated.Callback method invoked when the request and the response have been processed, either successfully or not.voidonTimeoutExpired()Deprecated.Invoked when the timeout expires.-
Methods inherited from class org.eclipse.jetty.io.CyclicTimeout
cancel, destroy, getScheduler, schedule
-
-
-
-
Constructor Detail
-
TimeoutCompleteListener
public TimeoutCompleteListener(Scheduler scheduler)
Deprecated.
-
-
Method Detail
-
onTimeoutExpired
public void onTimeoutExpired()
Deprecated.Description copied from class:CyclicTimeoutInvoked when the timeout expires.
- Specified by:
onTimeoutExpiredin classCyclicTimeout
-
onComplete
public void onComplete(Result result)
Deprecated.Description copied from interface:Response.CompleteListenerCallback method invoked when the request and the response have been processed, either successfully or not.The
resultparameter 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)orResponse.FailureListener.onFailure(Response, Throwable), and only when request indicates that it is completed.- Specified by:
onCompletein interfaceResponse.CompleteListener- Parameters:
result- the result of the request / response exchange
-
-