Interface MqttSubscribeResultHandler


  • public interface MqttSubscribeResultHandler
    • Method Detail

      • onSuccess

        void onSuccess​(MqttConnection connection,
                       java.util.List<MqttSubscription> subscriptions)
        will be called when a topic subscribed successfully
        Parameters:
        connection - the mqtt connection
        subscriptions - subscribed subscriptions
      • onError

        void onError​(MqttConnection connection,
                     java.lang.Throwable cause)
        will be called when error occurred during subscribing a topic
        Parameters:
        connection - the mqtt connection
        cause - cause