Interface MqttReconnectFailedListener


  • public interface MqttReconnectFailedListener
    Callback invoked when automatic reconnect cannot re-establish the client.
    • Method Detail

      • onReconnectFailed

        void onReconnectFailed​(MqttReconnectFailedContext context)
        Handles a failed automatic reconnect cycle.

        The PLCcom MQTT client catches runtime exceptions thrown by this method so application callback failures do not replace the original reconnect failure.

        Parameters:
        context - immutable reconnect-failure context