public abstract class JedisClusterConnectionHandler extends Object
Modifier and Type | Field and Description |
---|---|
static ClusterNodeInformationParser |
nodeInfoParser |
protected Map<String,JedisPool> |
nodes |
protected Map<Integer,JedisPool> |
slots |
Constructor and Description |
---|
JedisClusterConnectionHandler(Set<HostAndPort> nodes) |
Modifier and Type | Method and Description |
---|---|
void |
assignSlotsToNode(List<Integer> targetSlots,
HostAndPort targetNode) |
void |
assignSlotToNode(int slot,
HostAndPort targetNode) |
protected String |
getNodeKey(Client client) |
protected String |
getNodeKey(HostAndPort hnp) |
Map<String,JedisPool> |
getNodes() |
protected JedisPool |
getRandomConnection() |
void |
returnBrokenConnection(Jedis connection) |
protected void |
returnConnection(Jedis connection) |
public static ClusterNodeInformationParser nodeInfoParser
public JedisClusterConnectionHandler(Set<HostAndPort> nodes)
protected void returnConnection(Jedis connection)
public void returnBrokenConnection(Jedis connection)
public void assignSlotToNode(int slot, HostAndPort targetNode)
public void assignSlotsToNode(List<Integer> targetSlots, HostAndPort targetNode)
protected JedisPool getRandomConnection()
protected String getNodeKey(HostAndPort hnp)
Copyright © 2014. All rights reserved.