public interface MqttPublishMessage extends MqttMessage
Modifier and Type | Method and Description |
---|---|
void |
ack()
Send the PUBACK/PUBCOMP to the broker.
|
static MqttPublishMessage |
create(int messageId,
io.netty.handler.codec.mqtt.MqttQoS qosLevel,
boolean isDup,
boolean isRetain,
String topicName,
io.netty.buffer.ByteBuf payload)
Create a concrete instance of a Vert.x publish message
|
static MqttPublishMessage |
create(int messageId,
io.netty.handler.codec.mqtt.MqttQoS qosLevel,
boolean isDup,
boolean isRetain,
String topicName,
io.netty.buffer.ByteBuf payload,
io.netty.handler.codec.mqtt.MqttProperties properties)
Create a concrete instance of a Vert.x publish message
|
boolean |
isDup() |
boolean |
isRetain() |
Buffer |
payload() |
io.netty.handler.codec.mqtt.MqttProperties |
properties() |
io.netty.handler.codec.mqtt.MqttQoS |
qosLevel() |
String |
topicName() |
messageId
static MqttPublishMessage create(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 messagestatic MqttPublishMessage create(int messageId, io.netty.handler.codec.mqtt.MqttQoS qosLevel, boolean isDup, boolean isRetain, String topicName, io.netty.buffer.ByteBuf payload, io.netty.handler.codec.mqtt.MqttProperties properties)
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 messageproperties
- message propertiesio.netty.handler.codec.mqtt.MqttQoS qosLevel()
boolean isDup()
boolean isRetain()
String topicName()
Buffer payload()
void ack()
IllegalStateException
- if you are ack a message (with QoS > 0) when the Auto Ack is trueIllegalStateException
- if the message is already ack'edio.netty.handler.codec.mqtt.MqttProperties properties()
Copyright © 2023 Eclipse. All rights reserved.