| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final HttpClientImpl | |
| private final HttpChannelConnector | |
| private static final BiFunction | LIFO_SELECTOR
LIFO pool selector. |
| private final ConnectionPool |
| Access | Constructor and Description |
|---|---|
| public | SharedClientHttpStreamEndpoint(HttpClientImpl client, ClientMetrics<M, T, Req, Resp> metrics, int queueMaxSize, int http1MaxSize, int http2MaxSize, HttpChannelConnector connector, Runnable dispose)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public void | connect(ContextInternal
the context to use for IO context, PoolConnector.the listener listener,the callback handler with the result handler)Implements io. Connects to a back-end. |
| public boolean | isValid(HttpClientConnection
the connection to check connection)Implements io. Checks whether the connection is still valid. |
| public void | requestConnection2(ContextInternal ctx, long timeout, Handler<AsyncResult<Lease<HttpClientConnection>>> handler)
Implements abstract io.
|
| client | back to summary |
|---|---|
| private final HttpClientImpl client | |
| connector | back to summary |
|---|---|
| private final HttpChannelConnector connector | |
| LIFO_SELECTOR | back to summary |
|---|---|
| private static final BiFunction<PoolWaiter<HttpClientConnection>, List<PoolConnection<HttpClientConnection>>, PoolConnection<HttpClientConnection>> LIFO_SELECTOR LIFO pool selector. | |
| pool | back to summary |
|---|---|
| private final ConnectionPool<HttpClientConnection> pool | |
| SharedClientHttpStreamEndpoint | back to summary |
|---|---|
| public SharedClientHttpStreamEndpoint(HttpClientImpl client, ClientMetrics<M, T, Req, Resp> metrics, int queueMaxSize, int http1MaxSize, int http2MaxSize, HttpChannelConnector connector, Runnable dispose) | |
| checkExpired | back to summary |
|---|---|
| pack-priv void checkExpired() Implements abstract io. | |
| connect | back to summary |
|---|---|
| public void connect(ContextInternal context, PoolConnector. Implements io. Doc from io. Connects to a back-end.
| |
| isValid | back to summary |
|---|---|
| public boolean isValid(HttpClientConnection connection) Implements io. Doc from io. Checks whether the connection is still valid. The pool calls this method when it checks the validity of a connection. Any connection will be evicted from the pool.
| |
| requestConnection2 | back to summary |
|---|---|
| public void requestConnection2(ContextInternal ctx, long timeout, Handler<AsyncResult<Lease<HttpClientConnection>>> handler) Implements abstract io.
| |