public class MqttPublishMessageImpl extends Object implements MqttPublishMessage
| Constructor and Description |
|---|
MqttPublishMessageImpl(int messageId,
io.netty.handler.codec.mqtt.MqttQoS qosLevel,
boolean isDup,
boolean isRetain,
String topicName,
io.netty.buffer.ByteBuf payload)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDup() |
boolean |
isRetain() |
int |
messageId() |
Buffer |
payload() |
io.netty.handler.codec.mqtt.MqttQoS |
qosLevel() |
String |
topicName() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatepublic MqttPublishMessageImpl(int messageId,
io.netty.handler.codec.mqtt.MqttQoS qosLevel,
boolean isDup,
boolean isRetain,
String topicName,
io.netty.buffer.ByteBuf payload)
messageId - message identifierqosLevel - quality of service levelisDup - if the message is a duplicateisRetain - if the message needs to be retainedtopicName - topic on which the message was publishedpayload - payload messagepublic int messageId()
messageId in interface MqttMessagepublic io.netty.handler.codec.mqtt.MqttQoS qosLevel()
qosLevel in interface MqttPublishMessagepublic boolean isDup()
isDup in interface MqttPublishMessagepublic boolean isRetain()
isRetain in interface MqttPublishMessagepublic String topicName()
topicName in interface MqttPublishMessagepublic Buffer payload()
payload in interface MqttPublishMessageCopyright © 2020. All rights reserved.