类 ReactorNettyTcpClient<P>

    • 构造器详细资料

      • ReactorNettyTcpClient

        public ReactorNettyTcpClient​(String host,
                                     int port,
                                     ReactorNettyCodec<P> codec)
        Simple constructor with the host and port to use to connect to.

        This constructor manages the lifecycle of the TcpClient and underlying resources such as ConnectionProvider, LoopResources, and ChannelGroup.

        For full control over the initialization and lifecycle of the TcpClient, use ReactorNettyTcpClient(TcpClient, ReactorNettyCodec).

        参数:
        host - the host to connect to
        port - the port to connect to
        codec - for encoding and decoding the input/output byte streams
        另请参阅:
        StompReactorNettyCodec
      • ReactorNettyTcpClient

        public ReactorNettyTcpClient​(reactor.netty.tcp.TcpClient tcpClient,
                                     ReactorNettyCodec<P> codec)
        Constructor with an externally created TcpClient instance whose lifecycle is expected to be managed externally.
        参数:
        tcpClient - the TcpClient instance to use
        codec - for encoding and decoding the input/output byte streams
        另请参阅:
        StompReactorNettyCodec
    • 方法详细资料

      • setLogger

        public void setLogger​(Log logger)
        Set an alternative logger to use than the one based on the class name.
        参数:
        logger - the logger to use
        从以下版本开始:
        5.1
      • getLogger

        public Log getLogger()
        Return the currently configured Logger.
        从以下版本开始:
        5.1