Package io.vertx.mutiny.mqtt.messages
Class MqttPublishMessage
java.lang.Object
io.vertx.mutiny.mqtt.messages.MqttPublishMessage
- All Implemented Interfaces:
MutinyDelegate,MqttMessage
Represents an MQTT PUBLISH message
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- See Also:
-
MqttPublishMessage
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vertx.mutiny.mqtt.messages.MqttMessage
MqttMessage.MqttMessageImpl -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMqttPublishMessage(io.vertx.mqtt.messages.MqttPublishMessage delegate) Create a new instance ofMqttPublishMessagedelegating to the given (non-null) instance ofMqttPublishMessage.MqttPublishMessage(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidack()Send the PUBACK/PUBCOMP to the broker.static MqttPublishMessagecreate(int messageId, io.netty.handler.codec.mqtt.MqttQoS qosLevel, boolean isDup, boolean isRetain, String topicName, io.vertx.core.buffer.Buffer payload, io.netty.handler.codec.mqtt.MqttProperties properties) Create a concrete instance of a Vert.x publish messagebooleanio.vertx.mqtt.messages.MqttPublishMessageGet the delegate instance.inthashCode()booleanisDup()booleanisRetain()intstatic MqttPublishMessagenewInstance(io.vertx.mqtt.messages.MqttPublishMessage delegate) Creates a new instance of theMqttPublishMessage.io.vertx.core.buffer.Bufferpayload()io.netty.handler.codec.mqtt.MqttPropertiesio.netty.handler.codec.mqtt.MqttQoSqosLevel()toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
MqttPublishMessage
public MqttPublishMessage(io.vertx.mqtt.messages.MqttPublishMessage delegate) Create a new instance ofMqttPublishMessagedelegating to the given (non-null) instance ofMqttPublishMessage. -
MqttPublishMessage
-
-
Method Details
-
getDelegate
public io.vertx.mqtt.messages.MqttPublishMessage getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMqttMessage- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
create
public static MqttPublishMessage create(int messageId, io.netty.handler.codec.mqtt.MqttQoS qosLevel, boolean isDup, boolean isRetain, String topicName, io.vertx.core.buffer.Buffer payload, io.netty.handler.codec.mqtt.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
-
qosLevel
public io.netty.handler.codec.mqtt.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
- Returns:
- Topic on which the message was published
-
payload
public io.vertx.core.buffer.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. -
properties
public io.netty.handler.codec.mqtt.MqttProperties properties()- Returns:
- MQTT properties
-
messageId
public int messageId()- Specified by:
messageIdin interfaceMqttMessage- Returns:
- Message identifier
-
newInstance
Creates a new instance of theMqttPublishMessage. -
hashCode
public int hashCode() -
equals
-
toString
-