public abstract class JedisClusterConnectionHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
protected JedisClusterInfoCache |
cache |
| Constructor and Description |
|---|
JedisClusterConnectionHandler(Set<HostAndPort> nodes,
org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig,
int timeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
assignSlotToNode(int slot,
HostAndPort targetNode) |
Jedis |
getConnectionFromNode(HostAndPort node) |
Map<String,JedisPool> |
getNodes() |
void |
renewSlotCache() |
void |
returnBrokenConnection(Jedis connection) |
void |
returnConnection(Jedis connection) |
protected final JedisClusterInfoCache cache
public JedisClusterConnectionHandler(Set<HostAndPort> nodes, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, int timeout)
public void returnConnection(Jedis connection)
public void returnBrokenConnection(Jedis connection)
public Jedis getConnectionFromNode(HostAndPort node)
public void assignSlotToNode(int slot,
HostAndPort targetNode)
public void renewSlotCache()
Copyright © 2015. All rights reserved.