public final class MqttTopicSubscription
extends java.lang.Object
MqttSubscribePayload
构造器和说明 |
---|
MqttTopicSubscription(java.lang.String topicFilter,
MqttQoS qualityOfService) |
MqttTopicSubscription(java.lang.String topicFilter,
MqttSubscriptionOption option) |
限定符和类型 | 方法和说明 |
---|---|
MqttSubscriptionOption |
option() |
MqttQoS |
qualityOfService() |
void |
setTopicFilter(java.lang.String topicFilter)
Rewrite topic filter.
|
java.lang.String |
topicFilter() |
java.lang.String |
topicName()
已过时。
use topicFilter
|
java.lang.String |
toString() |
public MqttTopicSubscription(java.lang.String topicFilter, MqttQoS qualityOfService)
public MqttTopicSubscription(java.lang.String topicFilter, MqttSubscriptionOption option)
@Deprecated public java.lang.String topicName()
public java.lang.String topicFilter()
public void setTopicFilter(java.lang.String topicFilter)
Many IoT devices do not support reconfiguration or upgrade, so it is hard to change their subscribed topics. To resolve this issue, MQTT server may offer topic rewrite capability.
topicFilter
- Topic to rewrite topublic MqttQoS qualityOfService()
public MqttSubscriptionOption option()
public java.lang.String toString()
toString
在类中 java.lang.Object