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,
MqttQoS qosLevel,
boolean isDup,
boolean isRetain,
String topicName,
ByteBuf payload)
Create a concrete instance of a Vert.x publish message
|
static MqttPublishMessage |
create(int messageId,
MqttQoS qosLevel,
boolean isDup,
boolean isRetain,
String topicName,
ByteBuf payload,
MqttProperties properties)
Create a concrete instance of a Vert.x publish message
|
boolean |
isDup() |
boolean |
isRetain() |
Buffer |
payload() |
MqttProperties |
properties() |
MqttQoS |
qosLevel() |
String |
topicName() |
messageId
static MqttPublishMessage create(int messageId, MqttQoS qosLevel, boolean isDup, boolean isRetain, String topicName, 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, MqttQoS qosLevel, boolean isDup, boolean isRetain, String topicName, ByteBuf payload, 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 propertiesMqttQoS 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'edMqttProperties properties()
Copyright © 2024 Eclipse. All rights reserved.