Class MqttMessage

  • All Implemented Interfaces:
    Message<byte[]>

    public class MqttMessage
    extends Object
    implements Message<byte[]>
    • Method Detail

      • getPayload

        public byte[] getPayload()
        Specified by:
        getPayload in interface Message<byte[]>
        Returns:
        The payload for this message.
      • ack

        public CompletionStage<Void> ack()
        Description copied from interface: Message
        Acknowledge this message.
        Specified by:
        ack in interface Message<byte[]>
        Returns:
        a completion stage completed when the message is acknowledged. If the acknowledgement fails, the completion stage propagates the failure.
      • 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()