Interface MqttPublishResultHandler


  • public interface MqttPublishResultHandler
    • Method Detail

      • onSuccess

        void onSuccess​(MqttConnection connection)
        will be called when a message published successfully
        Parameters:
        connection - the mqtt connection
      • onError

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