Package org.apache.hc.core5.testing.nio
Class AsyncServer
java.lang.Object
org.apache.hc.core5.testing.nio.IOReactorExecutor<DefaultListeningIOReactor>
org.apache.hc.core5.testing.nio.AsyncServer
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
H2TestServer
,Http1TestServer
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hc.core5.testing.nio.IOReactorExecutor
IOReactorExecutor.Status
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) DefaultListeningIOReactor
createIOReactor
(IOEventHandlerFactory ioEventHandlerFactory, IOReactorConfig ioReactorConfig, ThreadFactory threadFactory, Callback<IOSession> sessionShutdownCallback) listen
(InetSocketAddress address) Methods inherited from class org.apache.hc.core5.testing.nio.IOReactorExecutor
awaitShutdown, close, execute, getStatus, initiateShutdown, reactor, shutdown
-
Constructor Details
-
AsyncServer
-
-
Method Details
-
createIOReactor
DefaultListeningIOReactor createIOReactor(IOEventHandlerFactory ioEventHandlerFactory, IOReactorConfig ioReactorConfig, ThreadFactory threadFactory, Callback<IOSession> sessionShutdownCallback) throws IOException - Specified by:
createIOReactor
in classIOReactorExecutor<DefaultListeningIOReactor>
- Throws:
IOException
-
listen
-
getEndpoints
-