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 Details

    • MapwayMqttService

      public MapwayMqttService(MqttProxyInfo info)
  • Method Details

    • sendMessage

      public void sendMessage(String topic, String message)
    • addTopic

      public void addTopic(String topic)
    • clearTopic

      public void clearTopic()
    • connect

      public void connect()
    • send

      public void send(String topic, String message)
    • connectionLost

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

      public void messageArrived(String topic, org.eclipse.paho.client.mqttv3.MqttMessage mqttMessage) 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 iMqttDeliveryToken)
      Specified by:
      deliveryComplete in interface org.eclipse.paho.client.mqttv3.MqttCallback