@Internal
public interface AsyncExecRuntime
This interface is considered internal and generally ought not be used or accessed by custom request exec handlers.
| Modifier and Type | Method and Description |
|---|---|
org.apache.hc.core5.concurrent.Cancellable |
acquireConnection(HttpRoute route,
Object state,
HttpClientContext clientContext,
org.apache.hc.core5.concurrent.FutureCallback<AsyncExecRuntime> callback) |
org.apache.hc.core5.concurrent.Cancellable |
connect(HttpClientContext clientContext,
org.apache.hc.core5.concurrent.FutureCallback<AsyncExecRuntime> callback) |
void |
discardConnection() |
org.apache.hc.core5.concurrent.Cancellable |
execute(org.apache.hc.core5.http.nio.AsyncClientExchangeHandler exchangeHandler,
HttpClientContext context)
Initiates a message exchange using the given handler.
|
AsyncExecRuntime |
fork() |
boolean |
isConnected() |
boolean |
isConnectionAcquired() |
void |
markConnectionNonReusable() |
void |
markConnectionReusable(Object state,
org.apache.hc.core5.util.TimeValue duration) |
void |
releaseConnection() |
void |
upgradeTls(HttpClientContext context) |
boolean |
validateConnection() |
boolean isConnectionAcquired()
org.apache.hc.core5.concurrent.Cancellable acquireConnection(HttpRoute route, Object state, HttpClientContext clientContext, org.apache.hc.core5.concurrent.FutureCallback<AsyncExecRuntime> callback)
void releaseConnection()
void discardConnection()
boolean validateConnection()
boolean isConnected()
org.apache.hc.core5.concurrent.Cancellable connect(HttpClientContext clientContext, org.apache.hc.core5.concurrent.FutureCallback<AsyncExecRuntime> callback)
void upgradeTls(HttpClientContext context)
org.apache.hc.core5.concurrent.Cancellable execute(org.apache.hc.core5.http.nio.AsyncClientExchangeHandler exchangeHandler,
HttpClientContext context)
void markConnectionReusable(Object state, org.apache.hc.core5.util.TimeValue duration)
void markConnectionNonReusable()
AsyncExecRuntime fork()
Copyright © 1999–2018 The Apache Software Foundation. All rights reserved.