Class MqttPublishMessage
java.lang.Object
io.vertx.rxjava3.mqtt.messages.MqttPublishMessage
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate, MqttMessage
Represents an MQTT PUBLISH message
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMqttPublishMessage(MqttPublishMessage delegate) MqttPublishMessage(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidack()Send the PUBACK/PUBCOMP to the broker.static MqttPublishMessagecreate(int messageId, MqttQoS qosLevel, boolean isDup, boolean isRetain, String topicName, Buffer payload, MqttProperties properties) Create a concrete instance of a Vert.x publish messagebooleaninthashCode()booleanisDup()booleanisRetain()intstatic MqttPublishMessagepayload()qosLevel()toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
MqttPublishMessage
-
MqttPublishMessage
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceMqttMessage- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
messageId
public int messageId()- Specified by:
messageIdin interfaceMqttMessage- Returns:
- Message identifier
-
qosLevel
- Returns:
- Quality of service level
-
isDup
public boolean isDup()- Returns:
- If the message is a duplicate
-
isRetain
public boolean isRetain()- Returns:
- If the message needs to be retained
-
topicName
- Returns:
- Topic on which the message was published
-
payload
- Returns:
- Payload message
-
ack
public void ack()Send the PUBACK/PUBCOMP to the broker. Use this method only if autoAck option is set to false. -
create
public static MqttPublishMessage create(int messageId, MqttQoS qosLevel, boolean isDup, boolean isRetain, String topicName, Buffer payload, MqttProperties properties) Create a concrete instance of a Vert.x publish message- Parameters:
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 properties- Returns:
- Vert.x publish message
-
properties
- Returns:
- MQTT properties
-
newInstance
-