public final class SendingMqttMessage<T> extends Object implements MqttMessage<T>
Modifier and Type | Method and Description |
---|---|
CompletionStage<Void> |
ack()
Acknowledge this message.
|
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, wait
of, of, of, of, of, withAck
addMetadata, getAck, getMetadata, getMetadata, unwrap, withMetadata, withMetadata, withPayload
public CompletionStage<Void> ack()
Message
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–2020 SmallRye. All rights reserved.