mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-18 08:55:53 +08:00
1.添加异步客户端MqttAsyncClient,创建client加锁,确保client唯一
2.添加线程池处理接收主题的业务事件
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user