public class MqttWill extends Object
| Constructor and Description |
|---|
MqttWill(boolean isWillFlag,
String willTopic,
String willMessage,
int willQos,
boolean isWillRetain)
Constructor
|
MqttWill(JsonObject json)
Create instance from JSON
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isWillFlag() |
boolean |
isWillRetain() |
JsonObject |
toJson()
Convert instance in JSON
|
String |
willMessage() |
int |
willQos() |
String |
willTopic() |
public MqttWill(boolean isWillFlag,
String willTopic,
String willMessage,
int willQos,
boolean isWillRetain)
isWillFlag - indicates will message presencewillTopic - topic to publish the willwillMessage - payload of the willwillQos - qos level for the willisWillRetain - if the will message must be retainedpublic MqttWill(JsonObject json)
json - the JSONpublic boolean isWillFlag()
public String willTopic()
public String willMessage()
public int willQos()
public boolean isWillRetain()
public JsonObject toJson()
Copyright © 2017. All rights reserved.