| Modifier and Type | Class and Description |
|---|---|
| private class | HttpDestination.
Enforces the total timeout for exchanges that are still in the queue. |
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private final HttpClient | |
| private final ClientConnectionFactory | |
| private ConnectionPool | |
| private final Queue | |
| private final HttpField | |
| private static final Logger | |
| private final Origin | |
| private final ProxyConfiguration. | |
| private final HttpDestination. | |
| private boolean | |
| private final AutoLock |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public String | |
| protected void | |
| protected void | doStart()
Overrides org. Starts the managed lifecycle beans in the order they were added. |
| protected void | doStop()
Overrides org. Stops the managed lifecycle beans in the reverse order they were added. |
| public void | dump(Appendable
The appendable to dump to out, String The indent to apply after any new lines. indent)Overrides org. Implements org. Dump this object (and children) into an Appendable using the provided indent after any new lines. |
| protected boolean | |
| public void | failed(Throwable
the reason for the operation failure x)Overrides default org. Callback invoked when the operation fails. |
| public ClientConnectionFactory | |
| public ConnectionPool | |
| public String | |
| public HttpField | |
| public HttpClient | |
| public Queue | |
| public long | |
| public Origin | |
| public int | |
| public ProxyConfiguration. | |
| public int | |
| public String | |
| public boolean | |
| public boolean | |
| public void | newConnection(Promise<Connection>
the promise of a new, unpooled, promise)ConnectionImplements org. Creates asynchronously a new, unpooled, |
| protected ConnectionPool | |
| protected Queue | |
| private ClientConnectionFactory | newSslClientConnectionFactory(SslContextFactory.
|
| private void | |
| private boolean | |
| public void | |
| public boolean | |
| public boolean | |
| public void | send(Request
the request to send to this destination request, Response.the listener that receives response events listenerImplements org. Sends the given request to this destination. |
| pack-priv void | |
| public void | |
| public void | |
| private void | |
| protected SendFailure | |
| public boolean | |
| public void | succeeded()
Overrides default org. Callback invoked when the operation completes. |
| public boolean | |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| activeNanoTime | back to summary |
|---|---|
| private long activeNanoTime | |
| client | back to summary |
|---|---|
| private final HttpClient client | |
| connectionFactory | back to summary |
|---|---|
| private final ClientConnectionFactory connectionFactory | |
| connectionPool | back to summary |
|---|---|
| private ConnectionPool connectionPool | |
| exchanges | back to summary |
|---|---|
| private final Queue<HttpExchange> exchanges | |
| hostField | back to summary |
|---|---|
| private final HttpField hostField | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG Hides org. | |
| origin | back to summary |
|---|---|
| private final Origin origin | |
| proxy | back to summary |
|---|---|
| private final ProxyConfiguration. | |
| requestTimeouts | back to summary |
|---|---|
| private final HttpDestination. | |
| stale | back to summary |
|---|---|
| private boolean stale | |
| staleLock | back to summary |
|---|---|
| private final AutoLock staleLock | |
| HttpDestination | back to summary |
|---|---|
| public HttpDestination(HttpClient client, Origin origin, boolean intrinsicallySecure) | |
| abort | back to summary |
|---|---|
| public void abort(Throwable cause) Aborts all the
| |
| accept | back to summary |
|---|---|
| public void accept(Connection connection) | |
| asString | back to summary |
|---|---|
| public String asString() | |
| createConnection | back to summary |
|---|---|
| protected void createConnection(Promise<Connection> promise) | |
| doStart | back to summary |
|---|---|
| protected void doStart() throws Exception Overrides org. Doc from org. Starts the managed lifecycle beans in the order they were added.
| |
| doStop | back to summary |
|---|---|
| protected void doStop() throws Exception Overrides org. Doc from org. Stops the managed lifecycle beans in the reverse order they were added.
| |
| dump | back to summary |
|---|---|
| public void dump(Appendable out, String indent) throws IOException Overrides org. Implements org. Doc from org. Dump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.
| |
| enqueue | back to summary |
|---|---|
| protected boolean enqueue(Queue<HttpExchange> queue, HttpExchange exchange) | |
| failed | back to summary |
|---|---|
| public void failed(Throwable x) Overrides default org. Doc from org. Callback invoked when the operation fails. | |
| getClientConnectionFactory | back to summary |
|---|---|
| public ClientConnectionFactory getClientConnectionFactory() | |
| getConnectionPool | back to summary |
|---|---|
| public ConnectionPool getConnectionPool() Implements org.
| |
| getHost | back to summary |
|---|---|
public String getHost()
| |
| getHostField | back to summary |
|---|---|
| public HttpField getHostField() | |
| getHttpClient | back to summary |
|---|---|
| public HttpClient getHttpClient() Implements org.
| |
| getHttpExchanges | back to summary |
|---|---|
| public Queue | |
| getIdle | back to summary |
|---|---|
public long getIdle()
| |
| getOrigin | back to summary |
|---|---|
| public Origin getOrigin() Implements org.
| |
| getPort | back to summary |
|---|---|
public int getPort()
| |
| getProxy | back to summary |
|---|---|
| public ProxyConfiguration. Implements org.
| |
| getQueuedRequestCount | back to summary |
|---|---|
public int getQueuedRequestCount()
| |
| getScheme | back to summary |
|---|---|
public String getScheme()
| |
| isSecure | back to summary |
|---|---|
| public boolean isSecure() Implements org.
| |
| isStale | back to summary |
|---|---|
public boolean isStale()
| |
| newConnection | back to summary |
|---|---|
| public void newConnection(Promise<Connection> promise) Implements org. Doc from org. Creates asynchronously a new, unpooled,
Use
| |
| newConnectionPool | back to summary |
|---|---|
| protected ConnectionPool newConnectionPool(HttpClient client) | |
| newExchangeQueue | back to summary |
|---|---|
| protected Queue | |
| newSslClientConnectionFactory | back to summary |
|---|---|
| private ClientConnectionFactory newSslClientConnectionFactory(SslContextFactory. | |
| process | back to summary |
|---|---|
| private void process(boolean create) | |
| process | back to summary |
|---|---|
| private boolean process(Connection connection) | |
| release | back to summary |
|---|---|
| public void release(Connection connection) | |
| remove | back to summary |
|---|---|
| public boolean remove(HttpExchange exchange) | |
| remove | back to summary |
|---|---|
| public boolean remove(Connection connection) | |
| send | back to summary |
|---|---|
| public void send(Request request, Response. Implements org. Doc from org. Sends the given request to this destination. You can use this method to send the request to a specific destination that may be different from the request authority. For example when
| |
| send | back to summary |
|---|---|
| pack-priv void send(HttpRequest request) | |
| send | back to summary |
|---|---|
| public void send(HttpExchange exchange) | |
| send | back to summary |
|---|---|
| public void send() | |
| send | back to summary |
|---|---|
| private void send(boolean create) | |
| send | back to summary |
|---|---|
| protected SendFailure send(IConnection connection, HttpExchange exchange) | |
| stale | back to summary |
|---|---|
| public boolean stale() | |
| succeeded | back to summary |
|---|---|
| public void succeeded() Overrides default org. Doc from org. Callback invoked when the operation completes.
| |
| sweep | back to summary |
|---|---|
| public boolean sweep() Implements org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
Enforces the total timeout for exchanges that are still in the queue.
The total timeout for exchanges that are not in the destination queue
is enforced in HttpConnection.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected Iterator | |
| protected boolean | onExpired(HttpExchange
the entity that is expired exchange)Implements abstract org. Invoked during the iteration when the given entity is expired. |
| RequestTimeouts | back to summary |
|---|---|
| private RequestTimeouts(Scheduler scheduler) | |
| iterator | back to summary |
|---|---|
| protected Iterator Implements abstract org.
| |
| onExpired | back to summary |
|---|---|
| protected boolean onExpired(HttpExchange exchange) Implements abstract org. Doc from org. 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. When
| |