Class CtOkHttp4Client

java.lang.Object
io.vrap.rmf.base.client.HttpClientBase
com.commercetools.http.okhttp4.CtOkHttp4Client
All Implemented Interfaces:
io.vrap.rmf.base.client.VrapHttpClient, Closeable, AutoCloseable

public class CtOkHttp4Client extends io.vrap.rmf.base.client.HttpClientBase
  • Field Details

  • Constructor Details

    • CtOkHttp4Client

      public CtOkHttp4Client()
    • CtOkHttp4Client

      public CtOkHttp4Client(BuilderOptions options)
    • CtOkHttp4Client

      public CtOkHttp4Client(Supplier<okhttp3.OkHttpClient.Builder> builderSupplier)
    • CtOkHttp4Client

      public CtOkHttp4Client(int maxRequests, int maxRequestsPerHost)
    • CtOkHttp4Client

      public CtOkHttp4Client(int maxRequests, int maxRequestsPerHost, BuilderOptions options)
    • CtOkHttp4Client

      public CtOkHttp4Client(ExecutorService executor)
    • CtOkHttp4Client

      public CtOkHttp4Client(ExecutorService executor, BuilderOptions options)
    • CtOkHttp4Client

      public CtOkHttp4Client(ExecutorService executor, int maxRequests, int maxRequestsPerHost)
    • 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

      public CompletableFuture<io.vrap.rmf.base.client.ApiHttpResponse<byte[]>> execute(io.vrap.rmf.base.client.ApiHttpRequest request)
    • closeDelegate

      public void closeDelegate() throws IOException
      Throws:
      IOException