public class TinyShardedJedisSentinelPool extends redis.clients.util.Pool<TinyShardJedis>
Modifier and Type | Class and Description |
---|---|
protected class |
TinyShardedJedisSentinelPool.JedisPubSubAdapter |
protected class |
TinyShardedJedisSentinelPool.MasterListener |
protected static class |
TinyShardedJedisSentinelPool.ShardedJedisFactory
PoolableObjectFactory custom impl.
|
Modifier and Type | Field and Description |
---|---|
protected Logger |
LOGGER |
protected Set<TinyShardedJedisSentinelPool.MasterListener> |
masterListeners |
static int |
MAX_RETRY_SENTINEL |
protected org.apache.commons.pool2.impl.GenericObjectPoolConfig |
poolConfig |
Constructor and Description |
---|
TinyShardedJedisSentinelPool(Map<String,Map<String,ShardSentinelConfig>> map,
org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
List<redis.clients.jedis.HostAndPort> |
getCurrentHostMaster() |
public static final int MAX_RETRY_SENTINEL
protected final Logger LOGGER
protected org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig
protected Set<TinyShardedJedisSentinelPool.MasterListener> masterListeners
public TinyShardedJedisSentinelPool(Map<String,Map<String,ShardSentinelConfig>> map, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
public void destroy()
destroy
in class redis.clients.util.Pool<TinyShardJedis>
public List<redis.clients.jedis.HostAndPort> getCurrentHostMaster()
Copyright © 2006–2018 TinyGroup. All rights reserved.