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;
|
}
|
}
|