Class MqttHsbClient

java.lang.Object
org.rockhopper.smarhome.hsb.server.MqttHsbClient
All Implemented Interfaces:
org.eclipse.paho.client.mqttv3.MqttCallback, org.springframework.beans.factory.DisposableBean

public class MqttHsbClient extends Object implements org.eclipse.paho.client.mqttv3.MqttCallback, org.springframework.beans.factory.DisposableBean
  • Field Details

    • log

      protected org.slf4j.Logger log
    • shutdownInProgress

      protected boolean shutdownInProgress
  • Constructor Details

    • MqttHsbClient

      public MqttHsbClient()
  • Method Details

    • start

      public void start()
    • isShutdownInProgress

      public boolean isShutdownInProgress()
    • stop

      public void stop()
    • connectionLost

      public void connectionLost(Throwable cause)
      Specified by:
      connectionLost in interface org.eclipse.paho.client.mqttv3.MqttCallback
    • messageArrived

      public void messageArrived(String topic, org.eclipse.paho.client.mqttv3.MqttMessage message) throws Exception
      Specified by:
      messageArrived in interface org.eclipse.paho.client.mqttv3.MqttCallback
      Throws:
      Exception
    • deliveryComplete

      public void deliveryComplete(org.eclipse.paho.client.mqttv3.IMqttDeliveryToken token)
      Specified by:
      deliveryComplete in interface org.eclipse.paho.client.mqttv3.MqttCallback
    • destroy

      public void destroy() throws Exception
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
      Throws:
      Exception