public class ApacheHttpAsyncClient4Engine extends Object implements AsyncClientHttpEngine, Closeable
AsyncClientHttpEngine.ResultExtractor<T>| Modifier and Type | Field and Description |
|---|---|
protected org.apache.http.impl.nio.client.CloseableHttpAsyncClient |
client |
protected boolean |
closeHttpClient |
| Constructor and Description |
|---|
ApacheHttpAsyncClient4Engine(org.apache.http.impl.nio.client.CloseableHttpAsyncClient client,
boolean closeHttpClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
HostnameVerifier |
getHostnameVerifier()
Needed for Client.getHostnameVerifier()
|
SSLContext |
getSslContext()
Needed for Client.getSslContext();
|
ClientResponse |
invoke(ClientInvocation request) |
<T> Future<T> |
submit(ClientInvocation request,
boolean buffered,
InvocationCallback<T> callback,
AsyncClientHttpEngine.ResultExtractor<T> extractor)
Submits an asynchronous request.
|
protected final org.apache.http.impl.nio.client.CloseableHttpAsyncClient client
protected final boolean closeHttpClient
public ApacheHttpAsyncClient4Engine(org.apache.http.impl.nio.client.CloseableHttpAsyncClient client,
boolean closeHttpClient)
public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface ClientHttpEnginepublic SSLContext getSslContext()
ClientHttpEnginegetSslContext in interface ClientHttpEnginepublic HostnameVerifier getHostnameVerifier()
ClientHttpEnginegetHostnameVerifier in interface ClientHttpEnginepublic ClientResponse invoke(ClientInvocation request)
invoke in interface ClientHttpEnginepublic <T> Future<T> submit(ClientInvocation request, boolean buffered, InvocationCallback<T> callback, AsyncClientHttpEngine.ResultExtractor<T> extractor)
AsyncClientHttpEnginesubmit in interface AsyncClientHttpEnginerequest - Requestbuffered - buffer the response?callback - Optional callback receiving the result, which is run inside the io-thread. may be null.extractor - ResultExtractor for extracting a result out of a ClientResponse. Is run inside the io-threadCopyright © 2018 JBoss by Red Hat. All rights reserved.