public class JbootRedisConfig extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private String |
clientName |
private Integer |
database |
private String |
host |
private Integer |
maxAttempts |
private Integer |
maxIdle |
private Integer |
maxTotal |
private Integer |
maxWaitMillis |
private Long |
minEvictableIdleTimeMillis |
private Integer |
minIdle |
private String |
name |
private Integer |
numTestsPerEvictionRun |
private String |
password |
private Integer |
port |
private String |
serializer |
private Boolean |
testOnBorrow |
private Boolean |
testOnCreate |
private Boolean |
testOnReturn |
private Boolean |
testWhileIdle |
private Long |
timeBetweenEvictionRunsMillis |
private Integer |
timeout |
private String |
type |
static String |
TYPE_JEDIS |
static String |
TYPE_LETTUCE |
static String |
TYPE_REDISSON |
| 构造器和说明 |
|---|
JbootRedisConfig() |
public static final String TYPE_JEDIS
public static final String TYPE_REDISSON
public static final String TYPE_LETTUCE
private String clientName
private Boolean testOnCreate
private Boolean testOnBorrow
private Boolean testOnReturn
private Boolean testWhileIdle
private Long minEvictableIdleTimeMillis
private Long timeBetweenEvictionRunsMillis
private Integer numTestsPerEvictionRun
private Integer maxAttempts
private Integer maxWaitMillis
private String serializer
public JbootRedisConfig()
public Integer getTimeout()
public void setTimeout(Integer timeout)
public String getPassword()
public void setPassword(String password)
public Integer getDatabase()
public void setDatabase(Integer database)
public String getClientName()
public void setClientName(String clientName)
public Boolean getTestOnCreate()
public void setTestOnCreate(Boolean testOnCreate)
public Boolean getTestOnBorrow()
public void setTestOnBorrow(Boolean testOnBorrow)
public Boolean getTestOnReturn()
public void setTestOnReturn(Boolean testOnReturn)
public Boolean getTestWhileIdle()
public void setTestWhileIdle(Boolean testWhileIdle)
public Long getMinEvictableIdleTimeMillis()
public void setMinEvictableIdleTimeMillis(Long minEvictableIdleTimeMillis)
public Long getTimeBetweenEvictionRunsMillis()
public void setTimeBetweenEvictionRunsMillis(Long timeBetweenEvictionRunsMillis)
public Integer getNumTestsPerEvictionRun()
public void setNumTestsPerEvictionRun(Integer numTestsPerEvictionRun)
public Integer getMaxAttempts()
public void setMaxAttempts(Integer maxAttempts)
public boolean isCluster()
public boolean isConfigOk()
public boolean isClusterConfig()
public Integer getMaxTotal()
public void setMaxTotal(Integer maxTotal)
public Integer getMaxIdle()
public void setMaxIdle(Integer maxIdle)
public Integer getMinIdle()
public void setMinIdle(Integer minIdle)
public Integer getMaxWaitMillis()
public void setMaxWaitMillis(Integer maxWaitMillis)
public Set<redis.clients.jedis.HostAndPort> getHostAndPorts()
public String getSerializer()
public void setSerializer(String serializer)
Copyright © 2024. All rights reserved.