public interface JedisSentinelManager
Modifier and Type | Method and Description |
---|---|
void |
addJedisSentinelConfig(JedisSentinelConfig config)
添加JedisSentinel配置
|
void |
addJedisSentinelConfigs(JedisSentinelConfigs configs)
添加JedisSentinel配置
|
redis.clients.jedis.JedisSentinelPool |
getJedisSentinelPool(String masterName)
获取JedisSentinel连接池,也是写连接池
|
redis.clients.jedis.Jedis |
getReadJedis(String masterName)
获取jedis读连接
|
redis.clients.jedis.JedisPool |
getReadJedisPool(String masterName)
获取jedis读连接池
|
redis.clients.jedis.Jedis |
getWriteJedis(String masterName)
获取jedis写连接
|
void |
removeJedisSentinelConfig(JedisSentinelConfig config)
移除JedisSentinel配置,并移除、销毁相关的连接池
|
void |
removeJedisSentinelConfigs(JedisSentinelConfigs configs)
移除JedisSentinel配置
|
redis.clients.jedis.JedisSentinelPool |
removeJedisSentinelPool(String masterName,
boolean destory)
移除JedisSentinel连接池
|
void addJedisSentinelConfigs(JedisSentinelConfigs configs)
configs
- void addJedisSentinelConfig(JedisSentinelConfig config)
config
- void removeJedisSentinelConfigs(JedisSentinelConfigs configs)
configs
- void removeJedisSentinelConfig(JedisSentinelConfig config)
config
- redis.clients.jedis.JedisSentinelPool removeJedisSentinelPool(String masterName, boolean destory)
masterName
- destory
- 是否销毁,true为销毁redis.clients.jedis.JedisSentinelPool getJedisSentinelPool(String masterName)
masterName
- masterNameredis.clients.jedis.Jedis getWriteJedis(String masterName)
masterName
- masterNameredis.clients.jedis.Jedis getReadJedis(String masterName)
masterName
- masterNameredis.clients.jedis.JedisPool getReadJedisPool(String masterName)
masterName
- masterNameCopyright © 2006–2018 TinyGroup. All rights reserved.