public class JedisSlotBasedConnectionHandler extends JedisClusterConnectionHandler
nodes, slots
Constructor and Description |
---|
JedisSlotBasedConnectionHandler(Set<HostAndPort> nodes) |
Modifier and Type | Method and Description |
---|---|
void |
assignSlotToNode(int slot,
HostAndPort targetNode) |
Jedis |
getConnection() |
Jedis |
getConnectionFromSlot(int slot) |
getNodeKey, getNodeKey, getNodes, getRandomConnection, returnBrokenConnection, returnConnection
public JedisSlotBasedConnectionHandler(Set<HostAndPort> nodes)
public Jedis getConnection()
public void assignSlotToNode(int slot, HostAndPort targetNode)
assignSlotToNode
in class JedisClusterConnectionHandler
public Jedis getConnectionFromSlot(int slot)
Copyright © 2014. All rights reserved.