Class ClassicToAsyncAdaptor

java.lang.Object
org.apache.hc.client5.http.impl.classic.CloseableHttpClient
org.apache.hc.client5.http.impl.compat.ClassicToAsyncAdaptor
All Implemented Interfaces:
Closeable, AutoCloseable, HttpClient, org.apache.hc.core5.io.ModalCloseable

@Experimental @Internal @Contract(threading=SAFE_CONDITIONAL) public class ClassicToAsyncAdaptor extends CloseableHttpClient
CloseableHttpClient implementation backed by CloseableHttpAsyncClient acting as a compatibility bridge with the classic APIs based on the standard InputStream / OutputStream model.
Since:
5.5
  • Field Details

    • client

      private final CloseableHttpAsyncClient client
    • operationTimeout

      private final org.apache.hc.core5.util.Timeout operationTimeout
  • Constructor Details

    • ClassicToAsyncAdaptor

      public ClassicToAsyncAdaptor(CloseableHttpAsyncClient client, org.apache.hc.core5.util.Timeout operationTimeout)
  • Method Details