Mqtt Plugin
Description#
- After the plugin is used, it will give the ability of mqtt.
Introducing Plugin Support of Mqtt Gateway#
- Introducing those dependencies in the pom.xml file of the gateway.
<!-- apache shenyu mqtt plugin start--><dependency> <groupId>org.apache.shenyu</groupId> <artifactId>shenyu-spring-boot-starter-plugin-mqtt</artifactId> <version>${project.version}</version></dependency>Plugin Setting#
port: MQTT BS port designation.
bossGroupThreadCount: default 1.
maxPayloadSize: Maximum packet size.
workerGroupThreadCount: default 12.
username: default shenyu.
password: default shenyu.
isEncryptPassword: The default is false , whether to encrypt the password.
encryptMode: encryption mode, currently only MD5 is implemented, the encryption mode can be customized,
org.apache.shenyu.protocol.mqtt.utils.EncryptUtilview the implementation of this encryption class.leakDetectorLevel: default DISABLED, resource target detection or detection level.
Notice#
- Mqtt does not have selector and ruler configurations.