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 void | acquireEndpoint(String
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)Acquires a connection endpoint. |
| public void | connectEndpoint(HttpClientContext
the execution context. context)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 ClassicHttpResponse | execute(String
unique operation ID or id, ClassicHttpRequest null.the request message. request, HttpClientContext the execution context. context)Executes HTTP request using the given context. |
| public ExecRuntime | Returns: another runtime with the same configuration.Forks this runtime for parallel execution. |
| public boolean | Returns: true if the connection is re-usable, false otherwise.Determines of the connection is considered re-usable. |
| 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 boolean | Returns: true if the request execution has been acquired,
false otherwise.Determines of the request execution has been aborted. |
| 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. |
| acquireEndpoint | back to summary |
|---|---|
| public void acquireEndpoint(String id, HttpRoute route, Object state, HttpClientContext context) throws IOException Acquires a connection endpoint. Endpoints can leased from a pool or unconnected new endpoint can be created.
| |
| connectEndpoint | back to summary |
|---|---|
| public void connectEndpoint(HttpClientContext context) throws IOException 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() throws IOException Disconnects the local endpoint from the initial hop in the connection route. | |
| execute | back to summary |
|---|---|
| public ClassicHttpResponse execute(String id, ClassicHttpRequest request, HttpClientContext context) throws IOException, HttpException Executes HTTP request using the given context.
| |
| fork | back to summary |
|---|---|
| public ExecRuntime fork(CancellableDependency cancellableAware) Forks this runtime for parallel execution.
| |
| isConnectionReusable | back to summary |
|---|---|
| public boolean isConnectionReusable() Determines of the connection is considered re-usable.
| |
| 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).
| |
| isExecutionAborted | back to summary |
|---|---|
| public boolean isExecutionAborted() Determines of the request execution has been aborted.
| |
| 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) throws IOException Upgrades transport security of the active connection by using the TLS security protocol.
| |