Class MqttMessage
- java.lang.Object
-
- io.smallrye.reactive.messaging.mqtt.server.MqttMessage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<Void>ack()Acknowledge this message.StringgetClientId()intgetMessageId()byte[]getPayload()io.netty.handler.codec.mqtt.MqttQoSgetQosLevel()StringgetTopic()booleanisDuplicate()booleanisRetain()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.microprofile.reactive.messaging.Message
addMetadata, getAck, getMetadata, getMetadata, getNack, nack, unwrap, withAck, withMetadata, withMetadata, withNack, withPayload
-
-
-
-
Method Detail
-
getPayload
public byte[] getPayload()
- Specified by:
getPayloadin interfaceMessage<byte[]>- Returns:
- The payload for this message.
-
ack
public CompletionStage<Void> ack()
Description copied from interface:MessageAcknowledge this message.
-
getMessageId
public int getMessageId()
-
getQosLevel
public io.netty.handler.codec.mqtt.MqttQoS getQosLevel()
-
isDuplicate
public boolean isDuplicate()
-
isRetain
public boolean isRetain()
-
getTopic
public String getTopic()
-
getClientId
public String getClientId()
-
-