1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package vc.thinker.absctacts.mqtt.connection;
import lombok.Data;
/**
* Mqtt连接基础信息
*
* @author xfy
* @since 2021/6/21 18:11
**/
@Data
public class MqttConnectionProperties {
/**
* broker地址
*/
private String broker;
/**
* 客户端id
*/
private String clientId;
/**
* 用户名
*/
private String username;
/**
* 密码
*/
private String password;
/**
* 清除session
*/
private boolean cleanSession;
/**
* 重连初始时间,秒
*/
private int reconnectionInterval = 3;
/**
* 重连时间最大值
*/
private final int reconnectionIntervalMax = 30;
/**
* 重连时间递增
*/
private final int reconnectionIncreasing = 0;
}