All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.mapway.ui.client.mqtt.IMqttHandler Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
package cn.mapway.ui.client.mqtt;

import cn.mapway.ui.client.mqtt.event.ConnectionLostEvent;
import cn.mapway.ui.client.mqtt.event.MessageArriveEvent;


/**
 * The Interface IMqttHandler.
 */
public interface IMqttHandler {

    /**
     * 连接断开事件.
     *
     * @param client the client
     * @param event  the event
     */
    public void onConnectionLost(MqttJsClient client, ConnectionLostEvent event);

    /**
     * 消息到达事件.
     *
     * @param client the client
     * @param event  the event
     */
    public void onMessageArrived(MqttJsClient client, MessageArriveEvent event);


    /**
     * 连接已经建立.
     *
     * @param client the client
     */
    public void onConnect(MqttJsClient client);

    /**
     * 连接失败的消息.
     *
     * @param client  the client
     * @param message the message
     */
    public void onConnetFailed(MqttJsClient client, String message);


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy