1.添加异步客户端MqttAsyncClient,创建client加锁,确保client唯一

2.添加线程池处理接收主题的业务事件
This commit is contained in:
guanshubiao
2022-03-22 16:06:36 +08:00
parent 36f98dc3cb
commit 940a9eda63
11 changed files with 370 additions and 78 deletions

View File

@@ -87,6 +87,16 @@ spring:
default-topic: test # 默认主题
timeout: 60000 # 超时时间
keepalive: 30 # 保持连接
clearSession: false
isShared: false
isSharedGroup: false
task:
execution:
pool:
core-size: 10 #最小连接数
max-size: 20 #最大连接数
queue-capacity: 25 #设置队列容量为2000个
# token配置
token: