| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final InternalH2ConnPool | |
| private final Logger | |
| private final HandlerFactory | |
| private volatile boolean | |
| private final AtomicReference |
| Access | Constructor and Description |
|---|---|
| pack-priv | InternalH2AsyncExecRuntime(final Logger log, final InternalH2ConnPool connPool, final HandlerFactory<AsyncPushConsumer> pushHandlerFactory)
|
| Modifier and Type | Method and Description |
|---|---|
| public Cancellable | acquireEndpoint(final String
unique operation ID or id, final HttpRoute null.the connection route. route, final Object the expected connection state. May be object, final HttpClientContext null if connection
can be state-less or its state is irrelevant.the execution context. context, final FutureCallback<AsyncExecRuntime> the result callback. callback)Implements org. |
| private void | |
| public Cancellable | connectEndpoint(final HttpClientContext
the execution context. context, final FutureCallback<AsyncExecRuntime> the result callback. callback)Implements org. |
| public void | discardEndpoint()
Implements org. |
| public void | disconnectEndpoint()
Implements org. |
| pack-priv InternalH2AsyncExecRuntime. | |
| public Cancellable | execute(final String
unique operation ID or id, final AsyncClientExchangeHandler null.the client message handler. exchangeHandler, final HttpClientContext the execution context. context)Implements org. |
| public AsyncExecRuntime | fork()
Implements org. |
| public boolean | isEndpointAcquired()
Implements org. |
| public boolean | isEndpointConnected()
Implements org. |
| public void | markConnectionNonReusable()
Implements org. |
| public void | markConnectionReusable(final Object
the connection state representation or newState, final TimeValue null if stateless.the period of time this connection is valid for. newValidDuration)Implements org. |
| public void | releaseEndpoint()
Implements org. |
| public void | upgradeTls(final HttpClientContext
the execution context. context)Implements org. |
| public void | upgradeTls(final HttpClientContext
the execution context. context, final FutureCallback<AsyncExecRuntime> callback)Overrides default org. |
| public boolean | validateConnection()
Implements org. |
| connPool | back to summary |
|---|---|
| private final InternalH2ConnPool connPool | |
| log | back to summary |
|---|---|
| private final Logger log | |
| pushHandlerFactory | back to summary |
|---|---|
| private final HandlerFactory<AsyncPushConsumer> pushHandlerFactory | |
| reusable | back to summary |
|---|---|
| private volatile boolean reusable | |
| sessionRef | back to summary |
|---|---|
| private final AtomicReference<InternalH2AsyncExecRuntime. | |
| InternalH2AsyncExecRuntime | back to summary |
|---|---|
| pack-priv InternalH2AsyncExecRuntime(final Logger log, final InternalH2ConnPool connPool, final HandlerFactory<AsyncPushConsumer> pushHandlerFactory) | |
| acquireEndpoint | back to summary |
|---|---|
| public Cancellable acquireEndpoint(final String id, final HttpRoute route, final Object object, final HttpClientContext context, final FutureCallback<AsyncExecRuntime> callback) Implements org. Doc from org. Initiates operation to acquire a connection endpoint. Endpoints can leased from a pool or unconnected new endpoint can be created.
| |
| closeEndpoint | back to summary |
|---|---|
| private void closeEndpoint(final InternalH2AsyncExecRuntime. | |
| connectEndpoint | back to summary |
|---|---|
| public Cancellable connectEndpoint(final HttpClientContext context, final FutureCallback<AsyncExecRuntime> callback) Implements org. Doc from org. Initiates operation to connect the local endpoint to the initial hop (connection target in case of a direct route or to the first proxy hop in case of a route via a proxy or multiple proxies).
| |
| discardEndpoint | back to summary |
|---|---|
| public void discardEndpoint() Implements org. Doc from org. Shuts down and discards the acquired endpoint.
| |
| disconnectEndpoint | back to summary |
|---|---|
| public void disconnectEndpoint() Implements org. Doc from org. Disconnects the local endpoint from the initial hop in the connection route.
| |
| ensureValid | back to summary |
|---|---|
| pack-priv InternalH2AsyncExecRuntime. | |
| execute | back to summary |
|---|---|
| public Cancellable execute(final String id, final AsyncClientExchangeHandler exchangeHandler, final HttpClientContext context) Implements org. Doc from org. Initiates a message exchange using the given handler.
| |
| fork | back to summary |
|---|---|
| public AsyncExecRuntime fork() Implements org. Doc from org. Forks this runtime for parallel execution.
| |
| isEndpointAcquired | back to summary |
|---|---|
| public boolean isEndpointAcquired() Implements org. Doc from org. Determines of a connection endpoint has been acquired.
| |
| isEndpointConnected | back to summary |
|---|---|
| public boolean isEndpointConnected() Implements org. Doc from org. Determines of there the endpoint is connected to the initial hop (connection target in case of a direct route or to the first proxy hop in case of a route via a proxy or multiple proxies).
| |
| markConnectionNonReusable | back to summary |
|---|---|
| public void markConnectionNonReusable() Implements org. Doc from org. Marks the connection as non re-usable.
| |
| markConnectionReusable | back to summary |
|---|---|
| public void markConnectionReusable(final Object newState, final TimeValue newValidDuration) Implements org. Doc from org. Marks the connection as potentially re-usable for the given period of time and also marks it as stateful if the state representation is given. | |
| releaseEndpoint | back to summary |
|---|---|
| public void releaseEndpoint() Implements org. Doc from org. Releases the acquired endpoint potentially making it available for re-use.
| |
| upgradeTls | back to summary |
|---|---|
| public void upgradeTls(final HttpClientContext context) Implements org. Doc from org. Upgrades transport security of the active connection by using the TLS security protocol.
| |
| upgradeTls | back to summary |
|---|---|
| public void upgradeTls(final HttpClientContext context, final FutureCallback<AsyncExecRuntime> callback) Overrides default org. Doc from org. Upgrades transport security of the active connection by using the TLS security protocol.
| |
| validateConnection | back to summary |
|---|---|
| public boolean validateConnection() Implements org. Doc from org. Validates the connection making sure it can be used to execute requests.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final IOSession | |
| pack-priv final HttpHost |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| session | back to summary |
|---|---|
| pack-priv final IOSession session | |
| target | back to summary |
|---|---|
| pack-priv final HttpHost target | |
| Endpoint | back to summary |
|---|---|
| pack-priv Endpoint(final HttpHost target, final IOSession session) | |
| getId | back to summary |
|---|---|
| public String getId() Implements org.
| |