Class TimeoutCompleteListener

java.lang.Object
org.eclipse.jetty.io.CyclicTimeout
org.eclipse.jetty.client.TimeoutCompleteListener
All Implemented Interfaces:
EventListener, Response.CompleteListener, Response.ResponseListener, org.eclipse.jetty.util.component.Destroyable

@Deprecated public class TimeoutCompleteListener extends org.eclipse.jetty.io.CyclicTimeout implements Response.CompleteListener
Deprecated.
Do not use it, use CyclicTimeouts instead.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TimeoutCompleteListener(org.eclipse.jetty.util.thread.Scheduler scheduler)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
    Callback method invoked when the request and the response have been processed, either successfully or not.
    void
    Deprecated.
     

    Methods inherited from class org.eclipse.jetty.io.CyclicTimeout

    cancel, destroy, getScheduler, schedule

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TimeoutCompleteListener

      public TimeoutCompleteListener(org.eclipse.jetty.util.thread.Scheduler scheduler)
      Deprecated.
  • Method Details

    • onTimeoutExpired

      public void onTimeoutExpired()
      Deprecated.
      Specified by:
      onTimeoutExpired in class org.eclipse.jetty.io.CyclicTimeout
    • onComplete

      public void onComplete(Result result)
      Deprecated.
      Description copied from interface: Response.CompleteListener
      Callback method invoked when the request and the response have been processed, either successfully or not.

      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.

      Specified by:
      onComplete in interface Response.CompleteListener
      Parameters:
      result - the result of the request / response exchange