Class CtApacheHttpClient
java.lang.Object
io.vrap.rmf.base.client.HttpClientBase
com.commercetools.http.apachehttp.CtApacheHttpClient
- All Implemented Interfaces:
VrapHttpClient
,Closeable
,AutoCloseable
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCtApacheHttpClient
(int maxConnTotal, int maxConnPerRoute) CtApacheHttpClient
(int maxConnTotal, int maxConnPerRoute, BuilderOptions options) CtApacheHttpClient
(BuilderOptions options) CtApacheHttpClient
(ExecutorService executor) CtApacheHttpClient
(ExecutorService executor, int maxConnTotal, int maxConnPerRoute) CtApacheHttpClient
(ExecutorService executor, int maxConnTotal, int maxConnPerRoute, BuilderOptions options) CtApacheHttpClient
(ExecutorService executor, BuilderOptions options) CtApacheHttpClient
(ExecutorService executor, Supplier<org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder> builderSupplier) CtApacheHttpClient
(Supplier<org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder> builderSupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoid
static org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder
static org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder
createClientBuilder
(org.apache.hc.client5.http.nio.AsyncClientConnectionManager cm) static org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManagerBuilder
createConnectionManager
(int maxConnTotal, int maxConnPerRoute) CompletableFuture<ApiHttpResponse<byte[]>>
execute
(ApiHttpRequest request) Methods inherited from class io.vrap.rmf.base.client.HttpClientBase
close
-
Field Details
-
MAX_REQUESTS
public static final int MAX_REQUESTS- See Also:
-
-
Constructor Details
-
CtApacheHttpClient
public CtApacheHttpClient() -
CtApacheHttpClient
public CtApacheHttpClient(int maxConnTotal, int maxConnPerRoute) -
CtApacheHttpClient
-
CtApacheHttpClient
-
CtApacheHttpClient
public CtApacheHttpClient(Supplier<org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder> builderSupplier) -
CtApacheHttpClient
-
CtApacheHttpClient
-
CtApacheHttpClient
-
CtApacheHttpClient
public CtApacheHttpClient(ExecutorService executor, int maxConnTotal, int maxConnPerRoute, BuilderOptions options) -
CtApacheHttpClient
public CtApacheHttpClient(ExecutorService executor, Supplier<org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder> builderSupplier)
-
-
Method Details
-
createClientBuilder
public static org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder createClientBuilder() -
createClientBuilder
public static org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder createClientBuilder(org.apache.hc.client5.http.nio.AsyncClientConnectionManager cm) -
createConnectionManager
public static org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManagerBuilder createConnectionManager(int maxConnTotal, int maxConnPerRoute) -
execute
-
closeDelegate
- Throws:
Exception
-