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

io.moquette.broker.RetainedMessage Maven / Gradle / Ivy

There is a newer version: 0.17
Show newest version
package io.moquette.broker;

import io.moquette.broker.subscriptions.Topic;
import io.netty.handler.codec.mqtt.MqttQoS;

import java.io.Serializable;

public class RetainedMessage implements Serializable{

    private final Topic topic;
    private final MqttQoS qos;
    private final byte[] payload;

    public RetainedMessage(Topic topic, MqttQoS qos, byte[] payload) {
        this.topic = topic;
        this.qos = qos;
        this.payload = payload;
    }

    public Topic getTopic() {
        return topic;
    }

    public MqttQoS qosLevel() {
        return qos;
    }

    public byte[] getPayload() {
        return payload;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy