Package io.vertx.reactivex.mqtt.messages
Class MqttPublishMessage
- java.lang.Object
- 
- io.vertx.reactivex.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 SummaryFields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<MqttPublishMessage>__TYPE_ARG
 - 
Constructor SummaryConstructors Constructor Description MqttPublishMessage(MqttPublishMessage delegate)MqttPublishMessage(Object delegate)
 - 
Method SummaryAll 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_ARGpublic static final io.vertx.lang.rx.TypeArg<MqttPublishMessage> __TYPE_ARG 
 
- 
 - 
Constructor Detail- 
MqttPublishMessagepublic MqttPublishMessage(MqttPublishMessage delegate) 
 - 
MqttPublishMessagepublic MqttPublishMessage(Object delegate) 
 
- 
 - 
Method Detail- 
getDelegatepublic MqttPublishMessage getDelegate() - Specified by:
- getDelegatein interface- MqttMessage
- Specified by:
- getDelegatein interface- io.vertx.lang.rx.RxDelegate
 
 - 
messageIdpublic int messageId() - Specified by:
- messageIdin interface- MqttMessage
- Returns:
- Message identifier
 
 - 
qosLevelpublic MqttQoS qosLevel() - Returns:
- Quality of service level
 
 - 
isDuppublic boolean isDup() - Returns:
- If the message is a duplicate
 
 - 
isRetainpublic boolean isRetain() - Returns:
- If the message needs to be retained
 
 - 
topicNamepublic String topicName() - Returns:
- Topic on which the message was published
 
 - 
payloadpublic Buffer payload() - Returns:
- Payload message
 
 - 
ackpublic void ack() Send the PUBACK/PUBCOMP to the broker. Use this method only if autoAck option is set to false.
 - 
createpublic 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 identifier
- qosLevel- quality of service level
- isDup- if the message is a duplicate
- isRetain- if the message needs to be retained
- topicName- topic on which the message was published
- payload- payload message
- properties- message properties
- Returns:
- Vert.x publish message
 
 - 
propertiespublic MqttProperties properties() - Returns:
- MQTT properties
 
 - 
newInstancepublic static MqttPublishMessage newInstance(MqttPublishMessage arg) 
 
- 
 
-