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:
java.lang.AutoCloseable
- Direct Known Subclasses:
H2TestServer
,Http1TestServer
public class AsyncServer extends IOReactorExecutor<DefaultListeningIOReactor>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.hc.core5.testing.nio.IOReactorExecutor
IOReactorExecutor.Status
-
-
Constructor Summary
Constructors Constructor Description AsyncServer(IOReactorConfig ioReactorConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) DefaultListeningIOReactor
createIOReactor(IOEventHandlerFactory ioEventHandlerFactory, IOReactorConfig ioReactorConfig, java.util.concurrent.ThreadFactory threadFactory, Callback<IOSession> sessionShutdownCallback)
java.util.Set<ListenerEndpoint>
getEndpoints()
java.util.concurrent.Future<ListenerEndpoint>
listen(java.net.InetSocketAddress address)
-
Methods inherited from class org.apache.hc.core5.testing.nio.IOReactorExecutor
awaitShutdown, close, execute, getStatus, initiateShutdown, reactor, shutdown
-
-
-
-
Constructor Detail
-
AsyncServer
public AsyncServer(IOReactorConfig ioReactorConfig)
-
-
Method Detail
-
createIOReactor
DefaultListeningIOReactor createIOReactor(IOEventHandlerFactory ioEventHandlerFactory, IOReactorConfig ioReactorConfig, java.util.concurrent.ThreadFactory threadFactory, Callback<IOSession> sessionShutdownCallback) throws java.io.IOException
- Specified by:
createIOReactor
in classIOReactorExecutor<DefaultListeningIOReactor>
- Throws:
java.io.IOException
-
listen
public java.util.concurrent.Future<ListenerEndpoint> listen(java.net.InetSocketAddress address)
-
getEndpoints
public java.util.Set<ListenerEndpoint> getEndpoints()
-
-