public abstract class JedisClusterConnectionHandler extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
protected JedisClusterInfoCache |
cache |
| Constructor and Description |
|---|
JedisClusterConnectionHandler(Set<HostAndPort> nodes,
org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig,
int connectionTimeout,
int soTimeout,
String password) |
JedisClusterConnectionHandler(Set<HostAndPort> nodes,
org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig,
int connectionTimeout,
int soTimeout,
String password,
String clientName) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Jedis |
getConnectionFromNode(HostAndPort node) |
Map<String,JedisPool> |
getNodes() |
void |
renewSlotCache() |
void |
renewSlotCache(Jedis jedis) |
protected final JedisClusterInfoCache cache
public JedisClusterConnectionHandler(Set<HostAndPort> nodes, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, int connectionTimeout, int soTimeout, String password)
public JedisClusterConnectionHandler(Set<HostAndPort> nodes, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, int connectionTimeout, int soTimeout, String password, String clientName)
public Jedis getConnectionFromNode(HostAndPort node)
public void renewSlotCache()
public void renewSlotCache(Jedis jedis)
public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2019. All rights reserved.