This interface is considered internal and generally ought not be used or accessed by custom request exec handlers.
| Modifier and Type | Method and Description |
|---|---|
| public Cancellable | Returns: handle that can be used to cancel the operation.unique operation ID or id, HttpRoute null.the connection route. route, Object the expected connection state. May be state, HttpClientContext null if connection
can be state-less or its state is irrelevant.the execution context. context, FutureCallback<AsyncExecRuntime> the result callback. callback)Initiates operation to acquire a connection endpoint. |
| public Cancellable | Returns: handle that can be used to cancel the operation.the execution context. context, FutureCallback<AsyncExecRuntime> the result callback. callback)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). |
| public void | |
| public void | |
| public Cancellable | execute(String
unique operation ID or id, AsyncClientExchangeHandler null.the client message handler. exchangeHandler, HttpClientContext the execution context. context)Initiates a message exchange using the given handler. |
| public AsyncExecRuntime | Returns: another runtime with the same configuration.Forks this runtime for parallel execution. |
| public boolean | Returns: true if an endpoint has been acquired, false otherwise.Determines of a connection endpoint has been acquired. |
| public boolean | Returns: true if the endpoint is connected, false otherwise.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). |
| public void | |
| public void | markConnectionReusable(Object
the connection state representation or state, TimeValue null if stateless.the period of time this connection is valid for. validityTime)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. |
| public void | |
| public void | upgradeTls(HttpClientContext
the execution context. context)Upgrades transport security of the active connection by using the TLS security protocol. |
| public default void | upgradeTls(HttpClientContext
the execution context. context, FutureCallback<AsyncExecRuntime> callback)Upgrades transport security of the active connection by using the TLS security protocol. |
| public boolean | Returns: true if the connection is valid, false.Validates the connection making sure it can be used to execute requests. |
| acquireEndpoint | back to summary |
|---|---|
| public Cancellable acquireEndpoint(String id, HttpRoute route, Object state, HttpClientContext context, FutureCallback<AsyncExecRuntime> callback) 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(HttpClientContext context, FutureCallback<AsyncExecRuntime> callback) 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() Shuts down and discards the acquired endpoint. | |
| disconnectEndpoint | back to summary |
|---|---|
| public void disconnectEndpoint() Disconnects the local endpoint from the initial hop in the connection route. | |
| execute | back to summary |
|---|---|
| public Cancellable execute(String id, AsyncClientExchangeHandler exchangeHandler, HttpClientContext context) Initiates a message exchange using the given handler.
| |
| fork | back to summary |
|---|---|
| public AsyncExecRuntime fork() Forks this runtime for parallel execution.
| |
| isEndpointAcquired | back to summary |
|---|---|
| public boolean isEndpointAcquired() Determines of a connection endpoint has been acquired.
| |
| isEndpointConnected | back to summary |
|---|---|
| public boolean isEndpointConnected() 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() Marks the connection as non re-usable. | |
| markConnectionReusable | back to summary |
|---|---|
| public void markConnectionReusable(Object state, TimeValue validityTime) 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() Releases the acquired endpoint potentially making it available for re-use. | |
| upgradeTls | back to summary |
|---|---|
| public void upgradeTls(HttpClientContext context) Upgrades transport security of the active connection by using the TLS security protocol.
| |
| upgradeTls | back to summary |
|---|---|
| public default void upgradeTls(HttpClientContext context, FutureCallback<AsyncExecRuntime> callback) Upgrades transport security of the active connection by using the TLS security protocol.
| |
| validateConnection | back to summary |
|---|---|
| public boolean validateConnection() Validates the connection making sure it can be used to execute requests.
| |