Class AsyncServer

java.lang.Object
org.apache.hc.core5.testing.nio.AsyncServer
All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
HttpTestServer

public class AsyncServer extends Object
  • Constructor Details

    • AsyncServer

      public AsyncServer(org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig)
  • Method Details

    • listen

      public Future<org.apache.hc.core5.reactor.ListenerEndpoint> listen(InetSocketAddress address)
    • getEndpoints

      public Set<org.apache.hc.core5.reactor.ListenerEndpoint> getEndpoints()
    • execute

      protected void execute(org.apache.hc.core5.reactor.IOEventHandlerFactory ioEventHandlerFactory) throws IOException
      Throws:
      IOException
    • getStatus

      public org.apache.hc.core5.reactor.IOReactorStatus getStatus()
    • awaitShutdown

      public void awaitShutdown(org.apache.hc.core5.util.TimeValue waitTime) throws InterruptedException
      Throws:
      InterruptedException
    • initiateShutdown

      public void initiateShutdown()
    • shutdown

      public void shutdown(org.apache.hc.core5.util.TimeValue graceTime)
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception