Package com.commercetools.http.okhttp4
Class CtOkHttp4Client
java.lang.Object
io.vrap.rmf.base.client.HttpClientBase
com.commercetools.http.okhttp4.CtOkHttp4Client
- All Implemented Interfaces:
VrapHttpClient
,Closeable
,AutoCloseable
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCtOkHttp4Client
(int maxRequests, int maxRequestsPerHost) CtOkHttp4Client
(int maxRequests, int maxRequestsPerHost, BuilderOptions options) CtOkHttp4Client
(BuilderOptions options) CtOkHttp4Client
(ExecutorService executor) CtOkHttp4Client
(ExecutorService executor, int maxRequests, int maxRequestsPerHost) CtOkHttp4Client
(ExecutorService executor, int maxRequests, int maxRequestsPerHost, BuilderOptions options) CtOkHttp4Client
(ExecutorService executor, BuilderOptions options) CtOkHttp4Client
(Supplier<okhttp3.OkHttpClient.Builder> builderSupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoid
okhttp3.Dispatcher
createDispatcher
(int maxRequests, int maxRequestsPerHost) okhttp3.Dispatcher
createDispatcher
(ExecutorService executor, int maxRequests, int maxRequestsPerHost) 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
-
CtOkHttp4Client
public CtOkHttp4Client() -
CtOkHttp4Client
-
CtOkHttp4Client
-
CtOkHttp4Client
public CtOkHttp4Client(int maxRequests, int maxRequestsPerHost) -
CtOkHttp4Client
-
CtOkHttp4Client
-
CtOkHttp4Client
-
CtOkHttp4Client
-
CtOkHttp4Client
public CtOkHttp4Client(ExecutorService executor, int maxRequests, int maxRequestsPerHost, BuilderOptions options)
-
-
Method Details
-
createDispatcher
public okhttp3.Dispatcher createDispatcher(int maxRequests, int maxRequestsPerHost) -
createDispatcher
public okhttp3.Dispatcher createDispatcher(ExecutorService executor, int maxRequests, int maxRequestsPerHost) -
execute
-
closeDelegate
- Throws:
IOException
-