| Modifier and Type | Field and Description |
|---|---|
| private final CancellableDependency | |
| private final AtomicReference | |
| private final Logger | |
| private final HttpClientConnectionManager | |
| private final HttpRequestExecutor | |
| private volatile boolean | |
| private volatile Object | |
| private volatile TimeValue |
| Access | Constructor and Description |
|---|---|
| pack-priv | InternalExecRuntime(final Logger log, final HttpClientConnectionManager manager, final HttpRequestExecutor requestExecutor, final CancellableDependency cancellableDependency)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | 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)Implements org. |
| public boolean | cancel()
Implements org. |
| private void | |
| public void | connectEndpoint(final HttpClientContext
the execution context. context)Implements org. |
| private void | |
| public void | discardEndpoint()
Implements org. |
| public void | disconnectEndpoint()
Implements org. |
| pack-priv ConnectionEndpoint | |
| public ClassicHttpResponse | execute(final String
unique operation ID or id, final ClassicHttpRequest null.the request message. request, final HttpClientContext the execution context. context)Implements org. |
| public ExecRuntime | fork(final CancellableDependency cancellableDependency)
Implements org. |
| public boolean | isConnectionReusable()
Implements org. |
| public boolean | isEndpointAcquired()
Implements org. |
| public boolean | isEndpointConnected()
Implements org. |
| public boolean | isExecutionAborted()
Implements org. |
| public void | markConnectionNonReusable()
Implements org. |
| public void | markConnectionReusable(final Object
the connection state representation or state, final TimeValue null if stateless.the period of time this connection is valid for. validDuration)Implements org. |
| public void | releaseEndpoint()
Implements org. |
| public void | upgradeTls(final HttpClientContext
the execution context. context)Implements org. |
| cancellableDependency | back to summary |
|---|---|
| private final CancellableDependency cancellableDependency | |
| endpointRef | back to summary |
|---|---|
| private final AtomicReference<ConnectionEndpoint> endpointRef | |
| log | back to summary |
|---|---|
| private final Logger log | |
| manager | back to summary |
|---|---|
| private final HttpClientConnectionManager manager | |
| requestExecutor | back to summary |
|---|---|
| private final HttpRequestExecutor requestExecutor | |
| reusable | back to summary |
|---|---|
| private volatile boolean reusable | |
| state | back to summary |
|---|---|
| private volatile Object state | |
| validDuration | back to summary |
|---|---|
| private volatile TimeValue validDuration | |
| InternalExecRuntime | back to summary |
|---|---|
| pack-priv InternalExecRuntime(final Logger log, final HttpClientConnectionManager manager, final HttpRequestExecutor requestExecutor, final CancellableDependency cancellableDependency) | |
| acquireEndpoint | back to summary |
|---|---|
| public void acquireEndpoint(final String id, final HttpRoute route, final Object object, final HttpClientContext context) throws IOException Implements org. Doc from org. Acquires a connection endpoint. Endpoints can leased from a pool or unconnected new endpoint can be created.
| |
| cancel | back to summary |
|---|---|
| public boolean cancel() Implements org. Doc from org. Cancels the ongoing operation or process.
| |
| connectEndpoint | back to summary |
|---|---|
| private void connectEndpoint(final ConnectionEndpoint endpoint, final HttpClientContext context) throws IOException | |
| connectEndpoint | back to summary |
|---|---|
| public void connectEndpoint(final HttpClientContext context) throws IOException Implements org. Doc from org. 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 ConnectionEndpoint 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() throws IOException Implements org. Doc from org. Disconnects the local endpoint from the initial hop in the connection route.
| |
| ensureValid | back to summary |
|---|---|
| pack-priv ConnectionEndpoint ensureValid() | |
| execute | back to summary |
|---|---|
| public ClassicHttpResponse execute(final String id, final ClassicHttpRequest request, final HttpClientContext context) throws IOException, HttpException Implements org. Doc from org. Executes HTTP request using the given context.
| |
| fork | back to summary |
|---|---|
| public ExecRuntime fork(final CancellableDependency cancellableDependency) Implements org. Doc from org. Forks this runtime for parallel execution.
| |
| isConnectionReusable | back to summary |
|---|---|
| public boolean isConnectionReusable() Implements org. Doc from org. Determines of the connection is considered re-usable.
| |
| 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).
| |
| isExecutionAborted | back to summary |
|---|---|
| public boolean isExecutionAborted() Implements org. Doc from org. Determines of the request execution has been aborted.
| |
| 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 state, final TimeValue validDuration) 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) throws IOException Implements org. Doc from org. Upgrades transport security of the active connection by using the TLS security protocol.
| |