public interface NetServer<IN,OUT> extends java.lang.Iterable<NetChannel<IN,OUT>>
| Modifier and Type | Method and Description |
|---|---|
reactor.core.composable.Promise<java.lang.Boolean> |
shutdown()
Shutdown this NetServer and complete the returned
Promise when shut
down. |
reactor.core.composable.Promise<java.lang.Boolean> |
start()
Start and bind this NetServer to the configured listen port.
|
NetServer<IN,OUT> |
start(java.lang.Runnable started)
Start and bind this NetServer to the configured listen port and notify the given
Consumer when the bind operation is complete. |
reactor.core.composable.Promise<java.lang.Boolean> start()
Promise that will be complete when the NetServer is startedNetServer<IN,OUT> start(@Nullable java.lang.Runnable started)
Consumer when the bind operation is complete.started - Runnable to invoke when bind operation is completethisreactor.core.composable.Promise<java.lang.Boolean> shutdown()
Promise when shut
down.Promise that will be complete when the NetServer is shut down