public final class SendingMqttMessage<T> extends Object implements MqttMessage<T>
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<Void> |
ack()
Acknowledge this message.
|
Supplier<CompletionStage<Void>> |
getAck() |
int |
getMessageId() |
T |
getPayload() |
io.netty.handler.codec.mqtt.MqttQoS |
getQosLevel() |
String |
getTopic() |
boolean |
isDuplicate() |
boolean |
isRetain() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitof, of, of, of, of, withAckaddMetadata, getMetadata, getMetadata, getNack, nack, nack, of, of, of, unwrap, withMetadata, withMetadata, withNack, withPayloadpublic CompletionStage<Void> ack()
Messagepublic Supplier<CompletionStage<Void>> getAck()
getAck in interface Message<T>CompletionStage.public T getPayload()
getPayload in interface Message<T>public int getMessageId()
getMessageId in interface MqttMessage<T>public io.netty.handler.codec.mqtt.MqttQoS getQosLevel()
getQosLevel in interface MqttMessage<T>public boolean isDuplicate()
isDuplicate in interface MqttMessage<T>public boolean isRetain()
isRetain in interface MqttMessage<T>public String getTopic()
getTopic in interface MqttMessage<T>Copyright © 2018–2021 SmallRye. All rights reserved.