yangys
2024-03-27 e48aa2ac8dea1be5db11c63edf0b912c4ad5ce65
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
package com.qianwen.core.redis.lock;
 
import org.springframework.boot.context.properties.ConfigurationProperties;
 
@ConfigurationProperties(BladeLockProperties.PREFIX)
/* loaded from: blade-starter-redis-9.3.0.0-SNAPSHOT.jar:org/springblade/core/redis/lock/BladeLockProperties.class */
public class BladeLockProperties {
    public static final String PREFIX = "blade.lock";
    private String password;
    private String masterAddress;
    private String[] slaveAddress;
    private String masterName;
    private String[] sentinelAddress;
    private String[] nodeAddress;
    private Boolean enabled = Boolean.FALSE;
    private String address = "redis://127.0.0.1:6379";
    private Integer database = 0;
    private Integer poolSize = 20;
    private Integer idleSize = 5;
    private Integer idleTimeout = 60000;
    private Integer connectionTimeout = 3000;
    private Integer timeout = 10000;
    private Mode mode = Mode.single;
 
    /* loaded from: blade-starter-redis-9.3.0.0-SNAPSHOT.jar:org/springblade/core/redis/lock/BladeLockProperties$Mode.class */
    public enum Mode {
        single,
        master,
        sentinel,
        cluster
    }
 
    public void setEnabled(final Boolean enabled) {
        this.enabled = enabled;
    }
 
    public void setAddress(final String address) {
        this.address = address;
    }
 
    public void setPassword(final String password) {
        this.password = password;
    }
 
    public void setDatabase(final Integer database) {
        this.database = database;
    }
 
    public void setPoolSize(final Integer poolSize) {
        this.poolSize = poolSize;
    }
 
    public void setIdleSize(final Integer idleSize) {
        this.idleSize = idleSize;
    }
 
    public void setIdleTimeout(final Integer idleTimeout) {
        this.idleTimeout = idleTimeout;
    }
 
    public void setConnectionTimeout(final Integer connectionTimeout) {
        this.connectionTimeout = connectionTimeout;
    }
 
    public void setTimeout(final Integer timeout) {
        this.timeout = timeout;
    }
 
    public void setMode(final Mode mode) {
        this.mode = mode;
    }
 
    public void setMasterAddress(final String masterAddress) {
        this.masterAddress = masterAddress;
    }
 
    public void setSlaveAddress(final String[] slaveAddress) {
        this.slaveAddress = slaveAddress;
    }
 
    public void setMasterName(final String masterName) {
        this.masterName = masterName;
    }
 
    public void setSentinelAddress(final String[] sentinelAddress) {
        this.sentinelAddress = sentinelAddress;
    }
 
    public void setNodeAddress(final String[] nodeAddress) {
        this.nodeAddress = nodeAddress;
    }
 
    public Boolean getEnabled() {
        return this.enabled;
    }
 
    public String getAddress() {
        return this.address;
    }
 
    public String getPassword() {
        return this.password;
    }
 
    public Integer getDatabase() {
        return this.database;
    }
 
    public Integer getPoolSize() {
        return this.poolSize;
    }
 
    public Integer getIdleSize() {
        return this.idleSize;
    }
 
    public Integer getIdleTimeout() {
        return this.idleTimeout;
    }
 
    public Integer getConnectionTimeout() {
        return this.connectionTimeout;
    }
 
    public Integer getTimeout() {
        return this.timeout;
    }
 
    public Mode getMode() {
        return this.mode;
    }
 
    public String getMasterAddress() {
        return this.masterAddress;
    }
 
    public String[] getSlaveAddress() {
        return this.slaveAddress;
    }
 
    public String getMasterName() {
        return this.masterName;
    }
 
    public String[] getSentinelAddress() {
        return this.sentinelAddress;
    }
 
    public String[] getNodeAddress() {
        return this.nodeAddress;
    }
}