Package org.eclipse.jetty.client
Class HttpDestination.RequestTimeouts
- java.lang.Object
-
- org.eclipse.jetty.io.CyclicTimeouts<HttpExchange>
-
- org.eclipse.jetty.client.HttpDestination.RequestTimeouts
-
- All Implemented Interfaces:
Destroyable
- Enclosing class:
- HttpDestination
private class HttpDestination.RequestTimeouts extends CyclicTimeouts<HttpExchange>
Enforces the total timeout for for exchanges that are still in the queue.
The total timeout for exchanges that are not in the destination queue is enforced in
HttpConnection
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.io.CyclicTimeouts
CyclicTimeouts.Expirable
-
-
Constructor Summary
Constructors Modifier Constructor Description private
RequestTimeouts(Scheduler scheduler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Iterator<HttpExchange>
iterator()
protected boolean
onExpired(HttpExchange exchange)
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<HttpExchange> iterator()
- Specified by:
iterator
in classCyclicTimeouts<HttpExchange>
- Returns:
- the entities to iterate over when this instance expires
-
onExpired
protected boolean onExpired(HttpExchange exchange)
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 classCyclicTimeouts<HttpExchange>
- Parameters:
exchange
- the entity that is expired- Returns:
- whether the entity should be removed from the iterator via
Iterator.remove()
-
-