Package ej.aws.iot
Class AwsIotMessage
- java.lang.Object
-
- ej.aws.iot.AwsIotMessage
-
public class AwsIotMessage extends Object
AWS Iot message wrapper
-
-
Constructor Summary
Constructors Constructor Description AwsIotMessage(String topic, int qos, boolean retained, byte[] payload)Create an IoT message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getPayload()Gets the payload.intgetQos()Gets the qos.StringgetTopic()Gets the topic.booleanisRetained()Gets the retained.
-
-
-
Constructor Detail
-
AwsIotMessage
public AwsIotMessage(String topic, int qos, boolean retained, byte[] payload)
Create an IoT message.- Parameters:
topic- MQTT topicqos- MQTT quality of serviceretained- should the message be retained by the MQTT broker.payload- message data.
-
-
Method Detail
-
getTopic
public String getTopic()
Gets the topic.- Returns:
- the topic.
-
getPayload
public byte[] getPayload()
Gets the payload.- Returns:
- the payload.
-
getQos
public int getQos()
Gets the qos.- Returns:
- the qos.
-
isRetained
public boolean isRetained()
Gets the retained.- Returns:
- the retained.
-
-