Interface TcpConnectResultHandler


  • public interface TcpConnectResultHandler
    • Method Detail

      • onSuccess

        void onSuccess​(MqttConnection connection)
        will be called when TCP connection successfully established
        Parameters:
        connection - the connection
      • onError

        void onError​(MqttConnection connection,
                     java.lang.Throwable cause)
        will be called when error occurred during establishing TCP connection
        Parameters:
        connection - the connection
        cause - cause
      • onTimeout

        void onTimeout​(MqttConnection connection)
        will be called when establishing TCP connection timeout
        Parameters:
        connection - the connection