Class TcpServer


public abstract class TcpServer extends ServerTransport<TcpServer,TcpServerConfig>
A TcpServer allows building in a safe immutable way a TCP server that is materialized and connecting when ServerTransport.bind() is ultimately called.

Example:

 
 TcpServer.create()
          .doOnBind(startMetrics)
          .doOnBound(startedMetrics)
          .doOnUnbound(stopMetrics)
          .host("127.0.0.1")
          .port(1234)
          .bind()
          .block()
 
 
Author:
Stephane Maldini, Violeta Georgieva