Package org.forgerock.http.apache.async
Class AsyncHttpClientProvider
java.lang.Object
org.forgerock.http.apache.async.AsyncHttpClientProvider
- All Implemented Interfaces:
HttpClientProvider
Creates and configures a
HttpClient
instance built around Apache HTTP Async Client component.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.forgerock.util.Option<Integer>
Specify the number of worker threads. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
OPTION_WORKER_THREADS
Specify the number of worker threads. If not set, the async client implementation manages this setting itself (by default this is number of CPU + 1).
-
-
Constructor Details
-
AsyncHttpClientProvider
public AsyncHttpClientProvider()
-
-
Method Details
-
newHttpClient
- Specified by:
newHttpClient
in interfaceHttpClientProvider
- Throws:
HttpApplicationException
-