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

com.hp.message.event.SendEmqxEvent Maven / Gradle / Ivy

There is a newer version: 1.2.1
Show newest version
package com.hp.message.event;


import com.hp.message.domain.EmqxDataMsg;
import com.hp.message.enums.EmqxQosType;

/**
 * @author 尚肖磊
 * @create 2021-05-25 9:58
 * @Description: 发送 emqxmq 消息事件
 */
public class SendEmqxEvent extends BaseEvent {

    /**
     * 发送消息主题
     */
    private String emqxTopic;

    /**
     * 消息qos类型
     */
    private EmqxQosType qosType;

    public SendEmqxEvent(Object source, EmqxDataMsg eventData, String emqxTopic) {
        super(source, eventData);
        this.emqxTopic = emqxTopic;
        this.qosType = EmqxQosType.QOS_0;
    }

    public SendEmqxEvent(Object source, EmqxDataMsg eventData, String emqxTopic, EmqxQosType qosType) {
        super(source, eventData);
        this.emqxTopic = emqxTopic;
        this.qosType = qosType;
    }

    public String getEmqxTopic() {
        return emqxTopic;
    }

    public void setEmqxTopic(String emqxTopic) {
        this.emqxTopic = emqxTopic;
    }

    public EmqxQosType getQosType() {
        return qosType;
    }

    public void setQosType(EmqxQosType qosType) {
        this.qosType = qosType;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy