public abstract class MqttConfigurer
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
MqttConfigurer.ClientRegistry |
| Modifier and Type | Field and Description |
|---|---|
protected MqttProperties |
mqttProperties |
| Constructor and Description |
|---|
MqttConfigurer() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeCreate(MqttConfigurer.ClientRegistry registry)
在创建客户端之前, 增删改客户端配置.
|
void |
beforeSubscribe(java.lang.String clientId,
java.util.Set<TopicPair> topicPairs)
在创建客户端后, 订阅主题前, 修改订阅的主题.
|
org.eclipse.paho.client.mqttv3.IMqttAsyncClient |
postCreate(java.lang.String clientId,
org.eclipse.paho.client.mqttv3.MqttConnectOptions options)
创建客户端.
|
void |
setProperties(MqttProperties mqttProperties) |
protected MqttProperties mqttProperties
public final void setProperties(MqttProperties mqttProperties)
public void beforeCreate(MqttConfigurer.ClientRegistry registry)
registry - ClientRegistry 添加或修改配置public org.eclipse.paho.client.mqttv3.IMqttAsyncClient postCreate(java.lang.String clientId,
org.eclipse.paho.client.mqttv3.MqttConnectOptions options)
throws org.eclipse.paho.client.mqttv3.MqttException
clientId - 客户端IDoptions - MqttConnectOptionsorg.eclipse.paho.client.mqttv3.MqttException - 创建客户端异常public void beforeSubscribe(java.lang.String clientId,
java.util.Set<TopicPair> topicPairs)
clientId - 客户端IDtopicPairs - 订阅主题Copyright © 2022. All Rights Reserved.