public class ReactorNettyClientHttpEngine extends Object implements AsyncClientHttpEngine
AsyncClientHttpEngine.ResultExtractor<T>| Constructor and Description |
|---|
ReactorNettyClientHttpEngine(reactor.netty.http.client.HttpClient httpClient,
io.netty.channel.group.ChannelGroup channelGroup,
reactor.netty.resources.ConnectionProvider connectionProvider)
Constructor for ReactorNettyClientHttpEngine
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
HostnameVerifier |
getHostnameVerifier()
Needed for Client.getHostnameVerifier()
|
SSLContext |
getSslContext()
Needed for Client.getSslContext();
|
javax.ws.rs.core.Response |
invoke(javax.ws.rs.client.Invocation request) |
<T> CompletableFuture<T> |
submit(ClientInvocation request,
boolean buffered,
AsyncClientHttpEngine.ResultExtractor<T> extractor,
ExecutorService executorService)
Submits an asynchronous request.
|
<T> Future<T> |
submit(ClientInvocation request,
boolean buffered,
javax.ws.rs.client.InvocationCallback<T> callback,
AsyncClientHttpEngine.ResultExtractor<T> extractor)
Submits an asynchronous request.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsubmitpublic ReactorNettyClientHttpEngine(reactor.netty.http.client.HttpClient httpClient,
io.netty.channel.group.ChannelGroup channelGroup,
reactor.netty.resources.ConnectionProvider connectionProvider)
httpClient - The HttpClient instance to be used by this AsyncClientHttpEnginechannelGroup - The ChannelGroup instance used by the provided HttpClientconnectionProvider - The ConnectionProvider instance used to create the provided HttpClientpublic <T> Future<T> submit(ClientInvocation request, boolean buffered, javax.ws.rs.client.InvocationCallback<T> callback, AsyncClientHttpEngine.ResultExtractor<T> extractor)
AsyncClientHttpEnginesubmit in interface AsyncClientHttpEngineT - typerequest - 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-threadpublic <T> CompletableFuture<T> submit(ClientInvocation request, boolean buffered, AsyncClientHttpEngine.ResultExtractor<T> extractor, ExecutorService executorService)
AsyncClientHttpEnginesubmit in interface AsyncClientHttpEngineT - typerequest - Requestbuffered - buffer the response?extractor - ResultExtractor for extracting a result out of a ClientResponse. Is run inside the io-threadexecutorService - the executor to use for asynchronous executionCompletableFuture with the result or Exceptionpublic SSLContext getSslContext()
ClientHttpEnginegetSslContext in interface ClientHttpEngineSSLContextpublic HostnameVerifier getHostnameVerifier()
ClientHttpEnginegetHostnameVerifier in interface ClientHttpEngineHostnameVerifierpublic javax.ws.rs.core.Response invoke(javax.ws.rs.client.Invocation request)
invoke in interface ClientHttpEnginepublic void close()
close in interface ClientHttpEngineCopyright © 2019 JBoss by Red Hat. All rights reserved.