public class JedisManagerImpl extends Object implements JedisManager
Constructor and Description |
---|
JedisManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addJedisConfig(JedisConfig config)
添加jedis配置
|
void |
addJedisConfigs(JedisConfigs configs)
添加jedis配置
|
JedisConfig |
getJedisConfig(String id)
获取jedis配置
|
redis.clients.jedis.JedisPool |
getJedisPool(String jedisId)
获取jedis连接池配置
|
redis.clients.jedis.JedisPoolConfig |
getJedisPoolConfig(String id)
获取jedis连接池配置
|
void |
removeJedisConfig(JedisConfig config)
移除jedis配置,并移除相关的连接池
|
void |
removeJedisConfigs(JedisConfigs configs)
移除jedis配置
|
String |
removeJedisPool(redis.clients.jedis.JedisPool pool)
移除jedis连接池
|
redis.clients.jedis.JedisPool |
removeJedisPool(String jedisId)
移除jedis连接池
|
protected static final Logger LOGGER
public void addJedisConfigs(JedisConfigs configs)
JedisManager
addJedisConfigs
in interface JedisManager
public void removeJedisConfigs(JedisConfigs configs)
JedisManager
removeJedisConfigs
in interface JedisManager
public void addJedisConfig(JedisConfig config)
JedisManager
addJedisConfig
in interface JedisManager
public void removeJedisConfig(JedisConfig config)
JedisManager
removeJedisConfig
in interface JedisManager
public JedisConfig getJedisConfig(String id)
JedisManager
getJedisConfig
in interface JedisManager
id
- jedis配置idpublic redis.clients.jedis.JedisPoolConfig getJedisPoolConfig(String id)
JedisManager
getJedisPoolConfig
in interface JedisManager
id
- jedis配置idpublic redis.clients.jedis.JedisPool getJedisPool(String jedisId)
JedisManager
getJedisPool
in interface JedisManager
jedisId
- jedis配置idpublic redis.clients.jedis.JedisPool removeJedisPool(String jedisId)
JedisManager
removeJedisPool
in interface JedisManager
jedisId
- jedis配置idpublic String removeJedisPool(redis.clients.jedis.JedisPool pool)
JedisManager
removeJedisPool
in interface JedisManager
pool
- jedis连接池Copyright © 2006–2018 TinyGroup. All rights reserved.