Package cn.mapway.mqtt.server
Class MapwayMqttService
- java.lang.Object
-
- cn.mapway.mqtt.server.MapwayMqttService
-
- All Implemented Interfaces:
org.eclipse.paho.client.mqttv3.MqttCallback
public abstract class MapwayMqttService extends Object implements org.eclipse.paho.client.mqttv3.MqttCallback
抽象类- Author:
- zhangjianshe@gmail.com
-
-
Constructor Summary
Constructors Constructor Description MapwayMqttService(MqttProxyInfo info)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTopic(String topic)voidclearTopic()voidconnect()voidconnectionLost(Throwable throwable)voiddeliveryComplete(org.eclipse.paho.client.mqttv3.IMqttDeliveryToken iMqttDeliveryToken)voidmessageArrived(String topic, org.eclipse.paho.client.mqttv3.MqttMessage mqttMessage)voidsend(String topic, String message)voidsendMessage(String topic, String message)
-
-
-
Constructor Detail
-
MapwayMqttService
public MapwayMqttService(MqttProxyInfo info)
-
-
Method Detail
-
addTopic
public void addTopic(String topic)
-
clearTopic
public void clearTopic()
-
connect
public void connect()
-
connectionLost
public void connectionLost(Throwable throwable)
- Specified by:
connectionLostin interfaceorg.eclipse.paho.client.mqttv3.MqttCallback
-
messageArrived
public void messageArrived(String topic, org.eclipse.paho.client.mqttv3.MqttMessage mqttMessage) throws Exception
- Specified by:
messageArrivedin interfaceorg.eclipse.paho.client.mqttv3.MqttCallback- Throws:
Exception
-
deliveryComplete
public void deliveryComplete(org.eclipse.paho.client.mqttv3.IMqttDeliveryToken iMqttDeliveryToken)
- Specified by:
deliveryCompletein interfaceorg.eclipse.paho.client.mqttv3.MqttCallback
-
-