public class DefaultMQTT3Message extends Object implements MQTT3Message
MQTT3Message.| Constructor and Description |
|---|
DefaultMQTT3Message(int id,
String topic,
byte[] mqttMessage,
int qos,
boolean isDuplicate,
boolean isRetained)
Returns an instance of a
DefaultMQTT3Message |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getContent() |
int |
getId() |
boolean |
getIsDuplicate() |
boolean |
getIsRetained() |
int |
getQoS() |
String |
getTopic() |
public DefaultMQTT3Message(int id,
String topic,
byte[] mqttMessage,
int qos,
boolean isDuplicate,
boolean isRetained)
DefaultMQTT3Messageid - the message id.topic - the topic to which the message was published.mqttMessage - the message content.qos - the quality of service for this message.isDuplicate - whether this message could be a duplicate of one that was already received.isRetained - whether this message was set to be retained by the broker at the specified topic.public String getTopic()
getTopic in interface MQTT3Messagepublic int getId()
getId in interface MQTT3Messagepublic int getQoS()
getQoS in interface MQTT3Messagepublic boolean getIsRetained()
getIsRetained in interface MQTT3Messagepublic boolean getIsDuplicate()
getIsDuplicate in interface MQTT3Messagepublic byte[] getContent()
getContent in interface MQTT3MessageCopyright © 2025 MuleSoft, Inc.. All rights reserved.