Interface MqttConnectResultHandler


  • public interface MqttConnectResultHandler
    • Method Detail

      • onSuccess

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

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

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