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 Summary
FieldsModifier and TypeFieldDescriptionprotected org.slf4j.Loggerprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnectionLost(Throwable cause) voiddeliveryComplete(org.eclipse.paho.client.mqttv3.IMqttDeliveryToken token) voiddestroy()booleanvoidmessageArrived(String topic, org.eclipse.paho.client.mqttv3.MqttMessage message) voidstart()voidstop()
-
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
- Specified by:
connectionLostin interfaceorg.eclipse.paho.client.mqttv3.MqttCallback
-
messageArrived
public void messageArrived(String topic, org.eclipse.paho.client.mqttv3.MqttMessage message) throws Exception - Specified by:
messageArrivedin interfaceorg.eclipse.paho.client.mqttv3.MqttCallback- Throws:
Exception
-
deliveryComplete
public void deliveryComplete(org.eclipse.paho.client.mqttv3.IMqttDeliveryToken token) - Specified by:
deliveryCompletein interfaceorg.eclipse.paho.client.mqttv3.MqttCallback
-
destroy
- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
Exception
-