| Modifier and Type | Field and Description |
|---|---|
| private final ConnectionInitiator | |
| private final AtomicReference | |
| private final Logger | |
| private final AsyncClientConnectionManager | |
| private final HandlerFactory | |
| private volatile boolean | |
| private volatile Object | |
| private final TlsConfig | tlsConfig
Deprecated
TLS should be configured by the connection manager
|
| private volatile TimeValue |
| Access | Constructor and Description |
|---|---|
| pack-priv | InternalHttpAsyncExecRuntime(final Logger log, final AsyncClientConnectionManager manager, final ConnectionInitiator connectionInitiator, final HandlerFactory<AsyncPushConsumer> pushHandlerFactory, final TlsConfig tlsConfig)
|
| 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. |
| public Cancellable | connectEndpoint(final HttpClientContext
the execution context. context, final FutureCallback<AsyncExecRuntime> the result callback. callback)Implements org. |
| private void | |
| public void | discardEndpoint()
Implements org. |
| public void | disconnectEndpoint()
Implements org. |
| pack-priv AsyncConnectionEndpoint | |
| 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. |
| connectionInitiator | back to summary |
|---|---|
| private final ConnectionInitiator connectionInitiator | |
| endpointRef | back to summary |
|---|---|
| private final AtomicReference<AsyncConnectionEndpoint> endpointRef | |
| log | back to summary |
|---|---|
| private final Logger log | |
| manager | back to summary |
|---|---|
| private final AsyncClientConnectionManager manager | |
| pushHandlerFactory | back to summary |
|---|---|
| private final HandlerFactory<AsyncPushConsumer> pushHandlerFactory | |
| reusable | back to summary |
|---|---|
| private volatile boolean reusable | |
| state | back to summary |
|---|---|
| private volatile Object state | |
| tlsConfig | back to summary |
|---|---|
| private final TlsConfig tlsConfig
Deprecated TLS should be configured by the connection manager | |
| validDuration | back to summary |
|---|---|
| private volatile TimeValue validDuration | |
| InternalHttpAsyncExecRuntime | back to summary |
|---|---|
| pack-priv InternalHttpAsyncExecRuntime(final Logger log, final AsyncClientConnectionManager manager, final ConnectionInitiator connectionInitiator, final HandlerFactory<AsyncPushConsumer> pushHandlerFactory, final TlsConfig tlsConfig) | |
| 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.
| |
| 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 |
|---|---|
| private void discardEndpoint(final AsyncConnectionEndpoint endpoint) | |
| 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 AsyncConnectionEndpoint ensureValid() | |
| 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.
| |