IN - the type of the received dataOUT - the type of replied dataCONN - the channel implementationpublic interface Client<IN,OUT,CONN extends Channel<IN,OUT>>
extends org.reactivestreams.Publisher<CONN>
| Modifier and Type | Method and Description |
|---|---|
reactor.rx.Promise<java.lang.Boolean> |
close()
Close this client and the underlying channel.
|
reactor.rx.Promise<java.lang.Boolean> |
open()
Open a channel to the configured address and return a
Promise that will be
fulfilled with the connected Channel. |
reactor.rx.Stream<java.lang.Boolean> |
open(Reconnect reconnect)
Open a channel to the configured address and return a
reactor.rx..Stream that will be populated
by the ChannelStream every time a connection or reconnection is made. |
Client<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> open()
Promise that will be
fulfilled with the connected Channel.Promise that will be completed when connectedreactor.rx.Stream<java.lang.Boolean> open(Reconnect reconnect)
reactor.rx..Stream that will be populated
by the ChannelStream every time a connection or reconnection is made.reconnect - the reconnection strategy to use when disconnects happenreactor.rx.Promise<java.lang.Boolean> close()