public final class MqttTopicSubscription extends Object
MqttSubscribePayload
Constructor and Description |
---|
MqttTopicSubscription(String topicFilter,
MqttQoS qualityOfService) |
MqttTopicSubscription(String topicFilter,
MqttSubscriptionOption option) |
Modifier and Type | Method and Description |
---|---|
MqttSubscriptionOption |
option() |
MqttQoS |
qualityOfService() |
void |
setTopicFilter(String topicFilter)
Rewrite topic filter.
|
String |
topicFilter() |
String |
topicName()
Deprecated.
use topicFilter
|
String |
toString() |
public MqttTopicSubscription(String topicFilter, MqttSubscriptionOption option)
@Deprecated public String topicName()
public String topicFilter()
public void setTopicFilter(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()
Copyright © 2008–2024 The Netty Project. All rights reserved.