Package com.commercetools.http.okhttp5
Class CtOkHttp5Client
java.lang.Object
io.vrap.rmf.base.client.HttpClientBase
com.commercetools.http.okhttp5.CtOkHttp5Client
- All Implemented Interfaces:
VrapHttpClient,Closeable,AutoCloseable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCtOkHttp5Client(int maxRequests, int maxRequestsPerHost) CtOkHttp5Client(int maxRequests, int maxRequestsPerHost, BuilderOptions options) CtOkHttp5Client(BuilderOptions options) CtOkHttp5Client(ExecutorService executor) CtOkHttp5Client(ExecutorService executor, int maxRequests, int maxRequestsPerHost) CtOkHttp5Client(ExecutorService executor, int maxRequests, int maxRequestsPerHost, BuilderOptions options) CtOkHttp5Client(ExecutorService executor, BuilderOptions options) CtOkHttp5Client(Supplier<okhttp3.OkHttpClient.Builder> builderSupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoidokhttp3.DispatchercreateDispatcher(int maxRequests, int maxRequestsPerHost) okhttp3.DispatchercreateDispatcher(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
-
CtOkHttp5Client
public CtOkHttp5Client() -
CtOkHttp5Client
-
CtOkHttp5Client
-
CtOkHttp5Client
public CtOkHttp5Client(int maxRequests, int maxRequestsPerHost) -
CtOkHttp5Client
-
CtOkHttp5Client
-
CtOkHttp5Client
-
CtOkHttp5Client
-
CtOkHttp5Client
public CtOkHttp5Client(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
-