Package org.eclipse.jetty.client
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>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.io.CyclicTimeouts
CyclicTimeouts.Expirable
-
-
Constructor Summary
Constructors Modifier Constructor Description privateRequestTimeouts(Scheduler scheduler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Iterator<HttpChannel>iterator()protected booleanonExpired(HttpChannel channel)Invoked during the iteration when the given entity is expired.-
Methods inherited from class org.eclipse.jetty.io.CyclicTimeouts
destroy, schedule
-
-
-
-
Constructor Detail
-
RequestTimeouts
private RequestTimeouts(Scheduler scheduler)
-
-
Method Detail
-
iterator
protected java.util.Iterator<HttpChannel> iterator()
- Specified by:
iteratorin classCyclicTimeouts<HttpChannel>- Returns:
- the entities to iterate over when this instance expires
-
onExpired
protected boolean onExpired(HttpChannel channel)
Description copied from class:CyclicTimeoutsInvoked 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:
onExpiredin classCyclicTimeouts<HttpChannel>- Parameters:
channel- the entity that is expired- Returns:
- whether the entity should be removed from the iterator via
Iterator.remove()
-
-