d1.duoxian.mqttserver.WrapMqttMessage Maven / Gradle / Ivy
package d1.duoxian.mqttserver;
import java.util.function.Function;
/**
* 用于在队列里缓存的消息包裹类
*
* @author liuyi
*/
public class WrapMqttMessage extends CustomMqttPublishMessage {
private String clientIp;
private Function publisher;
public WrapMqttMessage(String clientIp, String channelId, String topic, String content, Function publisher) {
super(channelId, topic, content);
this.clientIp = clientIp;
this.publisher = publisher;
}
public String getClientIp() {
return clientIp;
}
public void setClientIp(String clientIp) {
this.clientIp = clientIp;
}
public Function getPublisher() {
return publisher;
}
public void setPublisher(Function publisher) {
this.publisher = publisher;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy