public class MqttPublishRequest extends PersistentRequest
Modifier and Type | Field and Description |
---|---|
boolean |
isRPC
是否是RPC请求,如果是,则需要等待 replyTopic 消息后才Rsp。 默认为 false
|
java.lang.String |
msgId
RPC请求中,RPC请求的msgId,对应payload中id字段
|
int |
qos
设置MQTT 请求中QOS的值,默认为0
|
java.lang.String |
replyTopic
RPC请求中,指定replyTopic,若不指定,则为 topic+"_reply"
|
java.lang.String |
topic
请求topic
|
context, payloadObj
Constructor and Description |
---|
MqttPublishRequest() |
public java.lang.String topic
public boolean isRPC
public java.lang.String replyTopic
public java.lang.String msgId
public int qos