open class ReactorNettyTcpClient<P : Any> : TcpOperations<P>
Reactor Netty based implementation of TcpOperations.
Author
Rossen Stoyanchev
Author
Stephane Maldini
Since
5.0
ReactorNettyTcpClient(host: String, port: Int, codec: ReactorNettyCodec<P>)
Simple constructor with a host and a port. ReactorNettyTcpClient(optionsConsumer: Consumer<Builder<*>>, codec: ReactorNettyCodec<P>)
Constructor with a ClientOptions.Builder that can be used to customize Reactor Netty client options. Note: this constructor manages the lifecycle of the TcpClient and its underlying resources. Please do not customize any of the following options: For full control over the initialization and lifecycle of the TcpClient, see ReactorNettyTcpClient(tcpClient: TcpClient, codec: ReactorNettyCodec<P>)
Constructor with an externally created TcpClient instance whose lifecycle is expected to be managed externally. |
open fun connect(handler: TcpConnectionHandler<P>): ListenableFuture<Void>open fun connect(handler: TcpConnectionHandler<P>, strategy: ReconnectStrategy): ListenableFuture<Void> |
|
open fun shutdown(): ListenableFuture<Void> |