org.apache.storm.mqtt

## Class MqttMessage

- java.lang.Object
- - org.apache.storm.mqtt.MqttMessage

-     public class MqttMessage
      extends Object

  Represents an MQTT Message consisting of a topic string (e.g. “/users/ptgoetz/office/thermostat”) and a byte array message/payload.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MqttMessage(String topic, byte[] payload)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `getMessage()`
    `String` | `getTopic()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MqttMessage

          public MqttMessage(String topic,
                             byte[] payload)

  - ### Method Detail

    - #### getMessage

          public byte[] getMessage()

    - #### getTopic

          public String getTopic()

Copyright © 2021 The Apache Software Foundation. All rights reserved.