public class JedisSentinelManagerImpl2 extends Object implements JedisSentinelManager
Constructor and Description |
---|
JedisSentinelManagerImpl2() |
Modifier and Type | Method and Description |
---|---|
void |
addJedisSentinelConfig(JedisSentinelConfig config)
添加JedisSentinel配置
|
void |
addJedisSentinelConfigs(JedisSentinelConfigs configs)
添加JedisSentinel配置
|
JedisSentinelClient2 |
getJedisSentinelClient2(String masterName) |
JedisSentinelConfig |
getJedisSentinelConfig(String masterName) |
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连接池
|
public void addJedisSentinelConfigs(JedisSentinelConfigs configs)
JedisSentinelManager
addJedisSentinelConfigs
in interface JedisSentinelManager
public void addJedisSentinelConfig(JedisSentinelConfig config)
JedisSentinelManager
addJedisSentinelConfig
in interface JedisSentinelManager
public void removeJedisSentinelConfigs(JedisSentinelConfigs configs)
JedisSentinelManager
removeJedisSentinelConfigs
in interface JedisSentinelManager
public void removeJedisSentinelConfig(JedisSentinelConfig config)
JedisSentinelManager
removeJedisSentinelConfig
in interface JedisSentinelManager
public JedisSentinelConfig getJedisSentinelConfig(String masterName)
public redis.clients.jedis.JedisSentinelPool removeJedisSentinelPool(String masterName, boolean destory)
JedisSentinelManager
removeJedisSentinelPool
in interface JedisSentinelManager
destory
- 是否销毁,true为销毁public redis.clients.jedis.JedisSentinelPool getJedisSentinelPool(String masterName)
JedisSentinelManager
getJedisSentinelPool
in interface JedisSentinelManager
masterName
- masterNamepublic JedisSentinelClient2 getJedisSentinelClient2(String masterName)
public redis.clients.jedis.Jedis getWriteJedis(String masterName)
JedisSentinelManager
getWriteJedis
in interface JedisSentinelManager
masterName
- masterNamepublic redis.clients.jedis.Jedis getReadJedis(String masterName)
JedisSentinelManager
getReadJedis
in interface JedisSentinelManager
masterName
- masterNamepublic redis.clients.jedis.JedisPool getReadJedisPool(String masterName)
JedisSentinelManager
getReadJedisPool
in interface JedisSentinelManager
masterName
- masterNameCopyright © 2006–2018 TinyGroup. All rights reserved.