public class JedisSlotBasedConnectionHandler extends JedisClusterConnectionHandler
cache| Constructor and Description |
|---|
JedisSlotBasedConnectionHandler(java.util.Set<HostAndPort> nodes,
org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig,
int timeout) |
| Modifier and Type | Method and Description |
|---|---|
Jedis |
getConnection() |
Jedis |
getConnectionFromSlot(int slot) |
private java.util.List<JedisPool> |
getShuffledNodesPool() |
assignSlotToNode, getConnectionFromNode, getNodes, renewSlotCache, returnBrokenConnection, returnConnectionpublic JedisSlotBasedConnectionHandler(java.util.Set<HostAndPort> nodes, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, int timeout)
public Jedis getConnection()
getConnection in class JedisClusterConnectionHandlerpublic Jedis getConnectionFromSlot(int slot)
getConnectionFromSlot in class JedisClusterConnectionHandlerprivate java.util.List<JedisPool> getShuffledNodesPool()