Class HttpConnection.RequestTimeouts

java.lang.Object
org.eclipse.jetty.io.CyclicTimeouts<HttpChannel>
org.eclipse.jetty.client.HttpConnection.RequestTimeouts
All Implemented Interfaces:
Destroyable
Enclosing class:
HttpConnection

private class HttpConnection.RequestTimeouts extends CyclicTimeouts<HttpChannel>
  • Constructor Details

    • RequestTimeouts

      private RequestTimeouts(Scheduler scheduler)
  • Method Details

    • iterator

      protected Iterator<HttpChannel> iterator()
      Specified by:
      iterator in class CyclicTimeouts<HttpChannel>
      Returns:
      the entities to iterate over when this instance expires
    • onExpired

      protected boolean onExpired(HttpChannel channel)
      Description copied from class: CyclicTimeouts

      Invoked during the iteration when the given entity is expired.

      This method may be invoked multiple times, and even concurrently, for the same expirable entity and therefore the expiration of the entity, if any, should be an idempotent action.

      Specified by:
      onExpired in class CyclicTimeouts<HttpChannel>
      Parameters:
      channel - the entity that is expired
      Returns:
      whether the entity should be removed from the iterator via Iterator.remove()