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) |
ReactorNettyClientHttpEngine(reactor.netty.http.client.HttpClient httpClient,
io.netty.channel.group.ChannelGroup channelGroup,
reactor.netty.resources.ConnectionProvider connectionProvider,
Boolean useResponseFinalize) |
ReactorNettyClientHttpEngine(reactor.netty.http.client.HttpClient httpClient,
io.netty.channel.group.ChannelGroup channelGroup,
reactor.netty.resources.ConnectionProvider connectionProvider,
Duration requestTimeout) |
ReactorNettyClientHttpEngine(reactor.netty.http.client.HttpClient httpClient,
io.netty.channel.group.ChannelGroup channelGroup,
reactor.netty.resources.ConnectionProvider connectionProvider,
Duration requestTimeout,
Boolean useResponseFinalize) |
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, wait
submit
public ReactorNettyClientHttpEngine(reactor.netty.http.client.HttpClient httpClient, io.netty.channel.group.ChannelGroup channelGroup, reactor.netty.resources.ConnectionProvider connectionProvider)
public ReactorNettyClientHttpEngine(reactor.netty.http.client.HttpClient httpClient, io.netty.channel.group.ChannelGroup channelGroup, reactor.netty.resources.ConnectionProvider connectionProvider, Duration requestTimeout)
public ReactorNettyClientHttpEngine(reactor.netty.http.client.HttpClient httpClient, io.netty.channel.group.ChannelGroup channelGroup, reactor.netty.resources.ConnectionProvider connectionProvider, Boolean useResponseFinalize)
public <T> Future<T> submit(ClientInvocation request, boolean buffered, javax.ws.rs.client.InvocationCallback<T> callback, AsyncClientHttpEngine.ResultExtractor<T> extractor)
AsyncClientHttpEngine
submit
in interface AsyncClientHttpEngine
T
- 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)
AsyncClientHttpEngine
submit
in interface AsyncClientHttpEngine
T
- 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()
ClientHttpEngine
getSslContext
in interface ClientHttpEngine
SSLContext
public HostnameVerifier getHostnameVerifier()
ClientHttpEngine
getHostnameVerifier
in interface ClientHttpEngine
HostnameVerifier
public javax.ws.rs.core.Response invoke(javax.ws.rs.client.Invocation request)
invoke
in interface ClientHttpEngine
public void close()
close
in interface ClientHttpEngine
Copyright © 2020 JBoss by Red Hat. All rights reserved.