Interface IMqttClientConnectListener


  • public interface IMqttClientConnectListener
    mqtt 客户端连接监听
    Author:
    L.cm
    • Method Detail

      • onConnected

        void onConnected​(org.tio.core.ChannelContext context,
                         boolean isReconnect)
        监听到消息
        Parameters:
        context - ChannelContext
        isReconnect - 是否重连
      • onDisconnect

        void onDisconnect​(org.tio.core.ChannelContext channelContext,
                          Throwable throwable,
                          String remark,
                          boolean isRemove)
        连接关闭前触发本方法
        Parameters:
        channelContext - the channelContext
        throwable - the throwable 有可能为空
        remark - the remark 有可能为空
        isRemove - is removed