Package io.vertx.rxjava3.mqtt.messages
Class MqttPublishMessage
- java.lang.Object
-
- io.vertx.rxjava3.mqtt.messages.MqttPublishMessage
-
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate,MqttMessage
public class MqttPublishMessage extends Object implements io.vertx.lang.rx.RxDelegate, MqttMessage
Represents an MQTT PUBLISH messageNOTE: This class has been automatically generated from the
originalnon RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<MqttPublishMessage>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description MqttPublishMessage(MqttPublishMessage delegate)MqttPublishMessage(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidack()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 messagebooleanequals(Object o)MqttPublishMessagegetDelegate()inthashCode()booleanisDup()booleanisRetain()intmessageId()static MqttPublishMessagenewInstance(MqttPublishMessage arg)Bufferpayload()MqttPropertiesproperties()MqttQoSqosLevel()StringtopicName()StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<MqttPublishMessage> __TYPE_ARG
-
-
Constructor Detail
-
MqttPublishMessage
public MqttPublishMessage(MqttPublishMessage delegate)
-
MqttPublishMessage
public MqttPublishMessage(Object delegate)
-
-
Method Detail
-
getDelegate
public MqttPublishMessage 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
public MqttQoS 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
public String topicName()
- Returns:
- Topic on which the message was published
-
payload
public Buffer 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
public MqttProperties properties()
- Returns:
- MQTT properties
-
newInstance
public static MqttPublishMessage newInstance(MqttPublishMessage arg)
-
-