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

cn.wizzer.iot.mqtt.server.common.message.RetainMessageStore Maven / Gradle / Ivy

/**
 * Copyright (c) 2018, Mr.Wang ([email protected]) All rights reserved.
 */

package cn.wizzer.iot.mqtt.server.common.message;

import java.io.Serializable;

/**
 * Retain标志消息存储
 */
public class RetainMessageStore implements Serializable {

	private static final long serialVersionUID = -7548204047370972779L;

	private String topic;

	private byte[] messageBytes;

	private int mqttQoS;

	public String getTopic() {
		return topic;
	}

	public RetainMessageStore setTopic(String topic) {
		this.topic = topic;
		return this;
	}

	public byte[] getMessageBytes() {
		return messageBytes;
	}

	public RetainMessageStore setMessageBytes(byte[] messageBytes) {
		this.messageBytes = messageBytes;
		return this;
	}

	public int getMqttQoS() {
		return mqttQoS;
	}

	public RetainMessageStore setMqttQoS(int mqttQoS) {
		this.mqttQoS = mqttQoS;
		return this;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy