public interface AsyncClientHttpEngine extends ClientHttpEngine
Modifier and Type | Interface and Description |
---|---|
static interface |
AsyncClientHttpEngine.ResultExtractor<T>
Interface for extracting a result out of a ClientResponse
|
Modifier and Type | Method and Description |
---|---|
default <T> CompletableFuture<T> |
submit(ClientInvocation request,
boolean buffered,
AsyncClientHttpEngine.ResultExtractor<T> extractor)
Submits an asynchronous 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.
|
close, getHostnameVerifier, getSslContext, invoke, isFollowRedirects, setFollowRedirects
<T> Future<T> submit(ClientInvocation request, boolean buffered, javax.ws.rs.client.InvocationCallback<T> callback, AsyncClientHttpEngine.ResultExtractor<T> extractor)
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-threaddefault <T> CompletableFuture<T> submit(ClientInvocation request, boolean buffered, AsyncClientHttpEngine.ResultExtractor<T> extractor)
T
- typerequest
- Requestbuffered
- buffer the response?extractor
- ResultExtractor for extracting a result out of a ClientResponse. Is run inside the io-threadCompletableFuture
with the result or Exception<T> CompletableFuture<T> submit(ClientInvocation request, boolean buffered, AsyncClientHttpEngine.ResultExtractor<T> extractor, ExecutorService executorService)
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 ExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.