Package 

Interface MqttPingSender


  • 
    public interface MqttPingSender
    
                        

    Represents an object used to send ping packet to MQTT broker every keep alive interval.

    • Method Summary

      Modifier and Type Method Description
      abstract void init(ClientComms comms, ILogger logger) Initial method.
      abstract void start() Start ping sender.
      abstract void stop() Stop ping sender.
      abstract void schedule(long delayInMilliseconds) Schedule next ping in certain delay.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • init

         abstract void init(ClientComms comms, ILogger logger)

        Initial method. Pass interal state of current client in.

      • start

         abstract void start()

        Start ping sender. It will be called after connection is success.

      • stop

         abstract void stop()

        Stop ping sender. It is called if there is any errors or connection shutdowns.

      • schedule

         abstract void schedule(long delayInMilliseconds)

        Schedule next ping in certain delay.