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 -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidconnect()voidconnectionLost(Throwable throwable) voiddeliveryComplete(org.eclipse.paho.client.mqttv3.IMqttDeliveryToken iMqttDeliveryToken) voidmessageArrived(String topic, org.eclipse.paho.client.mqttv3.MqttMessage mqttMessage) voidvoidsendMessage(String topic, String message)
-
Constructor Details
-
MapwayMqttService
-
-
Method Details
-
sendMessage
-
addTopic
-
clearTopic
public void clearTopic() -
connect
public void connect() -
send
-
connectionLost
- 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
-