IN - the type of the received dataOUT - the type of replied datapublic interface Server<IN,OUT,CONN extends Channel<IN,OUT>>
extends org.reactivestreams.Publisher<CONN>
| Modifier and Type | Method and Description |
|---|---|
Server<IN,OUT,CONN> |
pipeline(reactor.fn.Function<CONN,? extends org.reactivestreams.Publisher<? extends OUT>> serviceFunction)
A global handling pipeline that will be called on each new connection and will listen for signals emitted
by the returned Publisher to write back.
|
reactor.rx.Promise<java.lang.Boolean> |
shutdown()
Shutdown this Server and complete the returned
Promise when shut
down. |
reactor.rx.Promise<java.lang.Boolean> |
start()
Start and bind this Server to the configured listen port.
|
reactor.rx.Promise<java.lang.Boolean> start()
Promise that will be complete when the Server is startedreactor.rx.Promise<java.lang.Boolean> shutdown()
Promise when shut
down.Promise that will be complete when the Server is shut down