Class SendingMqttMessage<T>
- java.lang.Object
-
- io.smallrye.reactive.messaging.mqtt.SendingMqttMessage<T>
-
- All Implemented Interfaces:
MqttMessage<T>,Message<T>
public final class SendingMqttMessage<T> extends Object implements MqttMessage<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<Void>ack()Acknowledge this message.intgetMessageId()TgetPayload()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, unwrap, withMetadata, withMetadata, withPayload
-
Methods inherited from interface io.smallrye.reactive.messaging.mqtt.MqttMessage
withAck
-
-
-
-
Method Detail
-
ack
public CompletionStage<Void> ack()
Description copied from interface:MessageAcknowledge this message.
-
getPayload
public T getPayload()
- Specified by:
getPayloadin interfaceMessage<T>- Returns:
- The payload for this message.
-
getMessageId
public int getMessageId()
- Specified by:
getMessageIdin interfaceMqttMessage<T>
-
getQosLevel
public io.netty.handler.codec.mqtt.MqttQoS getQosLevel()
- Specified by:
getQosLevelin interfaceMqttMessage<T>
-
isDuplicate
public boolean isDuplicate()
- Specified by:
isDuplicatein interfaceMqttMessage<T>
-
isRetain
public boolean isRetain()
- Specified by:
isRetainin interfaceMqttMessage<T>
-
getTopic
public String getTopic()
- Specified by:
getTopicin interfaceMqttMessage<T>
-
-