Modifier and Type | Class and Description |
---|---|
protected class |
JedisSentinelPool.JedisPubSubAdapter |
protected class |
JedisSentinelPool.MasterListener |
Modifier and Type | Field and Description |
---|---|
protected int |
database |
protected Logger |
log |
protected Set<JedisSentinelPool.MasterListener> |
masterListeners |
protected String |
password |
protected org.apache.commons.pool2.impl.GenericObjectPoolConfig |
poolConfig |
protected int |
timeout |
internalPool
Constructor and Description |
---|
JedisSentinelPool(String masterName,
Set<String> sentinels) |
JedisSentinelPool(String masterName,
Set<String> sentinels,
org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig) |
JedisSentinelPool(String masterName,
Set<String> sentinels,
org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig,
int timeout) |
JedisSentinelPool(String masterName,
Set<String> sentinels,
org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig,
int timeout,
String password) |
JedisSentinelPool(String masterName,
Set<String> sentinels,
org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig,
int timeout,
String password,
int database) |
JedisSentinelPool(String masterName,
Set<String> sentinels,
org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig,
String password) |
JedisSentinelPool(String masterName,
Set<String> sentinels,
String password) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
HostAndPort |
getCurrentHostMaster() |
Jedis |
getResource() |
void |
returnBrokenResource(Jedis resource) |
void |
returnResource(Jedis resource) |
closeInternalPool, initPool, returnBrokenResourceObject, returnResourceObject
protected org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig
protected int timeout
protected String password
protected int database
protected Set<JedisSentinelPool.MasterListener> masterListeners
protected Logger log
public JedisSentinelPool(String masterName, Set<String> sentinels, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig)
public JedisSentinelPool(String masterName, Set<String> sentinels, String password)
public JedisSentinelPool(String masterName, Set<String> sentinels, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, int timeout, String password)
public JedisSentinelPool(String masterName, Set<String> sentinels, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, int timeout)
public JedisSentinelPool(String masterName, Set<String> sentinels, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, String password)
public HostAndPort getCurrentHostMaster()
public Jedis getResource()
getResource
in class Pool<Jedis>
public void returnBrokenResource(Jedis resource)
returnBrokenResource
in class Pool<Jedis>
public void returnResource(Jedis resource)
returnResource
in class Pool<Jedis>
Copyright © 2014. All rights reserved.