public class AsyncHttpClientProvider extends Object implements HttpClientProvider
HttpClient
instance built around Apache HTTP Async Client component.Modifier and Type | Class and Description |
---|---|
static class |
AsyncHttpClientProvider.AsyncBehaviour
When does the response's promise completes.
|
Modifier and Type | Field and Description |
---|---|
static Option<AsyncHttpClientProvider.AsyncBehaviour> |
OPTION_ASYNC_BEHAVIOUR
Specify async client behaviour (promise's completion time).
|
static Option<Integer> |
OPTION_BUFFER_SIZE
Specify the size of the buffer used to consume to HTTP response body.
|
static Option<Integer> |
OPTION_WORKER_THREADS
Specify the number of worker threads.
|
Constructor and Description |
---|
AsyncHttpClientProvider() |
Modifier and Type | Method and Description |
---|---|
HttpClient |
newHttpClient(Options options)
Returns a new
HttpClient configured using the provided set of
options. |
public static final Option<Integer> OPTION_WORKER_THREADS
public static final Option<Integer> OPTION_BUFFER_SIZE
public static final Option<AsyncHttpClientProvider.AsyncBehaviour> OPTION_ASYNC_BEHAVIOUR
public HttpClient newHttpClient(Options options) throws HttpApplicationException
HttpClientProvider
HttpClient
configured using the provided set of
options.newHttpClient
in interface HttpClientProvider
options
- The client options (never null
).HttpClient
configured using the provided set of
options.HttpApplicationException
- If the client implementation could not be configured using
the provided set of options.Copyright 2011-2017 ForgeRock AS.