删除 template/common/src/main/java/{{.packagePath}}/common/redis/RedisPoolProperties.java
This commit is contained in:
@@ -1,145 +0,0 @@
|
|||||||
package {{ .package }}.common.redis;
|
|
||||||
|
|
||||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
||||||
import org.springframework.context.annotation.Configuration;
|
|
||||||
import org.springframework.context.annotation.PropertySource;
|
|
||||||
|
|
||||||
@Configuration
|
|
||||||
@ConfigurationProperties(prefix = "redis-config.pool")
|
|
||||||
public class RedisPoolProperties {
|
|
||||||
private String hostAndPort;
|
|
||||||
private int maxTotal;
|
|
||||||
private int maxIdle;
|
|
||||||
private int minIdle;
|
|
||||||
private Long maxWaitMillis;
|
|
||||||
private Long timeBetweenEvictionRunsMillis;
|
|
||||||
private Long minEvictableIdleTimeMillis;
|
|
||||||
private Long softMinEvictableIdleTimeMillis;
|
|
||||||
private boolean testOnBorrow;
|
|
||||||
private boolean testOnReturn;
|
|
||||||
private boolean testWhileIdle;
|
|
||||||
private boolean blockWhenExhausted;
|
|
||||||
private boolean jmxEnabled;
|
|
||||||
private boolean lifo;
|
|
||||||
private int numTestsPerEvictionRun;
|
|
||||||
|
|
||||||
public String getHostAndPort() {
|
|
||||||
return hostAndPort;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setHostAndPort(String hostAndPort) {
|
|
||||||
this.hostAndPort = hostAndPort;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getMaxTotal() {
|
|
||||||
return maxTotal;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMaxTotal(int maxTotal) {
|
|
||||||
this.maxTotal = maxTotal;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getMaxIdle() {
|
|
||||||
return maxIdle;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMaxIdle(int maxIdle) {
|
|
||||||
this.maxIdle = maxIdle;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getMinIdle() {
|
|
||||||
return minIdle;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMinIdle(int minIdle) {
|
|
||||||
this.minIdle = minIdle;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getMaxWaitMillis() {
|
|
||||||
return maxWaitMillis;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMaxWaitMillis(Long maxWaitMillis) {
|
|
||||||
this.maxWaitMillis = maxWaitMillis;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getTimeBetweenEvictionRunsMillis() {
|
|
||||||
return timeBetweenEvictionRunsMillis;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTimeBetweenEvictionRunsMillis(Long timeBetweenEvictionRunsMillis) {
|
|
||||||
this.timeBetweenEvictionRunsMillis = timeBetweenEvictionRunsMillis;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getMinEvictableIdleTimeMillis() {
|
|
||||||
return minEvictableIdleTimeMillis;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMinEvictableIdleTimeMillis(Long minEvictableIdleTimeMillis) {
|
|
||||||
this.minEvictableIdleTimeMillis = minEvictableIdleTimeMillis;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getSoftMinEvictableIdleTimeMillis() {
|
|
||||||
return softMinEvictableIdleTimeMillis;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSoftMinEvictableIdleTimeMillis(Long softMinEvictableIdleTimeMillis) {
|
|
||||||
this.softMinEvictableIdleTimeMillis = softMinEvictableIdleTimeMillis;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isTestOnBorrow() {
|
|
||||||
return testOnBorrow;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTestOnBorrow(boolean testOnBorrow) {
|
|
||||||
this.testOnBorrow = testOnBorrow;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isTestOnReturn() {
|
|
||||||
return testOnReturn;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTestOnReturn(boolean testOnReturn) {
|
|
||||||
this.testOnReturn = testOnReturn;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isTestWhileIdle() {
|
|
||||||
return testWhileIdle;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTestWhileIdle(boolean testWhileIdle) {
|
|
||||||
this.testWhileIdle = testWhileIdle;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isBlockWhenExhausted() {
|
|
||||||
return blockWhenExhausted;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setBlockWhenExhausted(boolean blockWhenExhausted) {
|
|
||||||
this.blockWhenExhausted = blockWhenExhausted;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isJmxEnabled() {
|
|
||||||
return jmxEnabled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setJmxEnabled(boolean jmxEnabled) {
|
|
||||||
this.jmxEnabled = jmxEnabled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isLifo() {
|
|
||||||
return lifo;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLifo(boolean lifo) {
|
|
||||||
this.lifo = lifo;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getNumTestsPerEvictionRun() {
|
|
||||||
return numTestsPerEvictionRun;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setNumTestsPerEvictionRun(int numTestsPerEvictionRun) {
|
|
||||||
this.numTestsPerEvictionRun = numTestsPerEvictionRun;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user