Skip navigation links
MQTT

Class MQTTListener

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void onConnected() 
      void onDisconnected() 
      void onFailure(java.lang.Throwable value) 
      void onPublish(org.fusesource.hawtbuf.UTF8Buffer topic, org.fusesource.hawtbuf.Buffer payload, java.lang.Runnable ack) 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MQTTListener

        public MQTTListener(MQTTCommunication com)
        Instantiates a new MQTT listener.
        Parameters:
        com - the com
    • Method Detail

      • onConnected

        public void onConnected()
        Specified by:
        onConnected in interface org.fusesource.mqtt.client.Listener
      • onDisconnected

        public void onDisconnected()
        Specified by:
        onDisconnected in interface org.fusesource.mqtt.client.Listener
      • onFailure

        public void onFailure(java.lang.Throwable value)
        Specified by:
        onFailure in interface org.fusesource.mqtt.client.Listener
      • onPublish

        public void onPublish(org.fusesource.hawtbuf.UTF8Buffer topic,
                              org.fusesource.hawtbuf.Buffer payload,
                              java.lang.Runnable ack)
        Specified by:
        onPublish in interface org.fusesource.mqtt.client.Listener