public interface NetClient<IN,OUT> extends java.lang.Iterable<NetChannel<IN,OUT>>
| Modifier and Type | Method and Description |
|---|---|
reactor.core.composable.Promise<java.lang.Boolean> |
close()
Close this client and the underlying channel.
|
void |
close(reactor.function.Consumer<java.lang.Boolean> onClose)
Close this client and the underlying channel and invoke the given
Consumer when the
operation has completed. |
reactor.core.composable.Promise<NetChannel<IN,OUT>> |
open()
Open a channel to the configured address and return a
Promise that will be
fulfilled with the connected NetChannel. |
reactor.core.composable.Stream<NetChannel<IN,OUT>> |
open(Reconnect reconnect)
Open a channel to the configured address and return a
Stream that will be populated
by the NetChannels every time a connection or reconnection is made. |
reactor.core.composable.Promise<NetChannel<IN,OUT>> open()
Promise that will be
fulfilled with the connected NetChannel.Promise that will be completed when connectedreactor.core.composable.Stream<NetChannel<IN,OUT>> open(Reconnect reconnect)
Stream that will be populated
by the NetChannels every time a connection or reconnection is made.reconnect - the reconnection strategy to use when disconnects happenreactor.core.composable.Promise<java.lang.Boolean> close()
void close(reactor.function.Consumer<java.lang.Boolean> onClose)
Consumer when the
operation has completed.onClose - consumer to invoke when client is closed