public class ReceivingMqttMessage extends Object implements MqttMessage<byte[]>
| Modifier and Type | Method and Description |
|---|---|
int |
getMessageId() |
Function<Throwable,CompletionStage<Void>> |
getNack() |
byte[] |
getPayload() |
io.netty.handler.codec.mqtt.MqttQoS |
getQosLevel() |
String |
getTopic() |
boolean |
isDuplicate() |
boolean |
isRetain() |
CompletionStage<Void> |
nack(Throwable reason)
Acknowledge negatively this message.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitof, of, of, of, of, withAckack, addMetadata, getAck, getMetadata, getMetadata, of, of, of, unwrap, withMetadata, withMetadata, withNack, withPayloadpublic byte[] getPayload()
getPayload in interface Message<byte[]>public int getMessageId()
getMessageId in interface MqttMessage<byte[]>public io.netty.handler.codec.mqtt.MqttQoS getQosLevel()
getQosLevel in interface MqttMessage<byte[]>public boolean isDuplicate()
isDuplicate in interface MqttMessage<byte[]>public boolean isRetain()
isRetain in interface MqttMessage<byte[]>public String getTopic()
getTopic in interface MqttMessage<byte[]>public CompletionStage<Void> nack(Throwable reason)
Messagenack is used to indicate that the processing of a message failed. The reason is passed as parameter.Copyright © 2018–2021 SmallRye. All rights reserved.