Class AbstractHttpAsyncClientBase

java.lang.Object
org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient
org.apache.hc.client5.http.impl.async.AbstractHttpAsyncClientBase
All Implemented Interfaces:
Closeable, AutoCloseable, HttpAsyncClient, org.apache.hc.core5.io.ModalCloseable, org.apache.hc.core5.reactor.ConnectionInitiator
Direct Known Subclasses:
AbstractMinimalHttpAsyncClientBase, InternalAbstractHttpAsyncClient

abstract class AbstractHttpAsyncClientBase extends CloseableHttpAsyncClient implements org.apache.hc.core5.reactor.ConnectionInitiator
  • Field Details

  • Constructor Details

    • AbstractHttpAsyncClientBase

      AbstractHttpAsyncClientBase(org.apache.hc.core5.reactor.DefaultConnectingIOReactor ioReactor, AsyncPushConsumerRegistry pushConsumerRegistry, ThreadFactory threadFactory)
  • Method Details

    • start

      public final void start()
      Specified by:
      start in class CloseableHttpAsyncClient
    • register

      @Deprecated public void register(String hostname, String uriPattern, org.apache.hc.core5.function.Supplier<org.apache.hc.core5.http.nio.AsyncPushConsumer> supplier)
      Deprecated.
      Use RequestRouter at the construction time
      Specified by:
      register in class CloseableHttpAsyncClient
    • isRunning

      boolean isRunning()
    • connect

      public Future<org.apache.hc.core5.reactor.IOSession> connect(org.apache.hc.core5.net.NamedEndpoint remoteEndpoint, SocketAddress remoteAddress, SocketAddress localAddress, org.apache.hc.core5.util.Timeout timeout, Object attachment, org.apache.hc.core5.concurrent.FutureCallback<org.apache.hc.core5.reactor.IOSession> callback)
      Specified by:
      connect in interface org.apache.hc.core5.reactor.ConnectionInitiator
    • getConnectionInitiator

      org.apache.hc.core5.reactor.ConnectionInitiator getConnectionInitiator()
    • getStatus

      public final org.apache.hc.core5.reactor.IOReactorStatus getStatus()
      Specified by:
      getStatus in class CloseableHttpAsyncClient
    • awaitShutdown

      public final void awaitShutdown(org.apache.hc.core5.util.TimeValue waitTime) throws InterruptedException
      Specified by:
      awaitShutdown in class CloseableHttpAsyncClient
      Throws:
      InterruptedException
    • initiateShutdown

      public final void initiateShutdown()
      Specified by:
      initiateShutdown in class CloseableHttpAsyncClient
    • internalClose

      void internalClose(org.apache.hc.core5.io.CloseMode closeMode)
    • close

      public final void close(org.apache.hc.core5.io.CloseMode closeMode)
      Specified by:
      close in interface org.apache.hc.core5.io.ModalCloseable
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable