Class AsyncServer
java.lang.Object
org.apache.hc.core5.testing.nio.AsyncServer
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
HttpTestServer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidawaitShutdown(org.apache.hc.core5.util.TimeValue waitTime) voidclose()protected voidexecute(org.apache.hc.core5.reactor.IOEventHandlerFactory ioEventHandlerFactory) Set<org.apache.hc.core5.reactor.ListenerEndpoint> org.apache.hc.core5.reactor.IOReactorStatusvoidFuture<org.apache.hc.core5.reactor.ListenerEndpoint> listen(InetSocketAddress address) voidshutdown(org.apache.hc.core5.util.TimeValue graceTime)
-
Constructor Details
-
AsyncServer
public AsyncServer(org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig)
-
-
Method Details
-
listen
-
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
- Throws:
InterruptedException
-
initiateShutdown
public void initiateShutdown() -
shutdown
public void shutdown(org.apache.hc.core5.util.TimeValue graceTime) -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-