public class MqttWill extends Object
Constructor and Description |
---|
MqttWill(boolean isWillFlag,
String willTopic,
io.vertx.core.buffer.Buffer willMessage,
int willQos,
boolean isWillRetain)
Constructor
|
MqttWill(io.vertx.core.json.JsonObject json)
Create instance from JSON
|
Modifier and Type | Method and Description |
---|---|
io.vertx.core.buffer.Buffer |
getWillMessage() |
byte[] |
getWillMessageBytes() |
int |
getWillQos() |
String |
getWillTopic() |
boolean |
isWillFlag() |
boolean |
isWillRetain() |
io.vertx.core.json.JsonObject |
toJson()
Convert instance in JSON
|
public MqttWill(boolean isWillFlag, String willTopic, io.vertx.core.buffer.Buffer 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(io.vertx.core.json.JsonObject json)
json
- the JSONpublic boolean isWillFlag()
public String getWillTopic()
public io.vertx.core.buffer.Buffer getWillMessage()
public byte[] getWillMessageBytes()
public int getWillQos()
public boolean isWillRetain()
public io.vertx.core.json.JsonObject toJson()
Copyright © 2022 Eclipse. All rights reserved.