public class JedisClusterInfoCache extends Object
Constructor and Description |
---|
JedisClusterInfoCache(org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig,
int timeout) |
JedisClusterInfoCache(org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig,
int connectionTimeout,
int soTimeout,
int infiniteSoTimeout,
String password,
String clientName) |
JedisClusterInfoCache(org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig,
int connectionTimeout,
int soTimeout,
int infiniteSoTimeout,
String user,
String password,
String clientName) |
JedisClusterInfoCache(org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig,
int connectionTimeout,
int soTimeout,
int infiniteSoTimeout,
String user,
String password,
String clientName,
boolean ssl,
SSLSocketFactory sslSocketFactory,
SSLParameters sslParameters,
HostnameVerifier hostnameVerifier,
HostAndPortMapper hostAndPortMap) |
JedisClusterInfoCache(org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig,
int connectionTimeout,
int soTimeout,
int infiniteSoTimeout,
String user,
String password,
String clientName,
boolean ssl,
SSLSocketFactory sslSocketFactory,
SSLParameters sslParameters,
HostnameVerifier hostnameVerifier,
JedisClusterHostAndPortMap hostAndPortMap)
Deprecated.
This constructor will be removed in next major release.
|
JedisClusterInfoCache(org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig,
int connectionTimeout,
int soTimeout,
String password,
String clientName) |
JedisClusterInfoCache(org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig,
int connectionTimeout,
int soTimeout,
String password,
String clientName,
boolean ssl,
SSLSocketFactory sslSocketFactory,
SSLParameters sslParameters,
HostnameVerifier hostnameVerifier,
HostAndPortMapper hostAndPortMap) |
JedisClusterInfoCache(org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig,
int connectionTimeout,
int soTimeout,
String password,
String clientName,
boolean ssl,
SSLSocketFactory sslSocketFactory,
SSLParameters sslParameters,
HostnameVerifier hostnameVerifier,
JedisClusterHostAndPortMap hostAndPortMap)
Deprecated.
This constructor will be removed in next major release.
|
JedisClusterInfoCache(org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig,
int connectionTimeout,
int soTimeout,
String user,
String password,
String clientName) |
JedisClusterInfoCache(org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig,
int connectionTimeout,
int soTimeout,
String user,
String password,
String clientName,
boolean ssl,
SSLSocketFactory sslSocketFactory,
SSLParameters sslParameters,
HostnameVerifier hostnameVerifier,
HostAndPortMapper hostAndPortMap) |
JedisClusterInfoCache(org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig,
int connectionTimeout,
int soTimeout,
String user,
String password,
String clientName,
boolean ssl,
SSLSocketFactory sslSocketFactory,
SSLParameters sslParameters,
HostnameVerifier hostnameVerifier,
JedisClusterHostAndPortMap hostAndPortMap)
Deprecated.
This constructor will be removed in next major release.
|
JedisClusterInfoCache(org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig,
JedisClientConfig clientConfig) |
Modifier and Type | Method and Description |
---|---|
void |
assignSlotsToNode(List<Integer> targetSlots,
HostAndPort targetNode) |
void |
assignSlotToNode(int slot,
HostAndPort targetNode) |
void |
discoverClusterNodesAndSlots(Jedis jedis) |
JedisPool |
getNode(String nodeKey) |
static String |
getNodeKey(Client client)
Deprecated.
This method will be removed in future.
|
static String |
getNodeKey(HostAndPort hnp) |
static String |
getNodeKey(Jedis jedis)
Deprecated.
This method will be removed in future.
|
Map<String,JedisPool> |
getNodes() |
List<JedisPool> |
getShuffledNodesPool() |
JedisPool |
getSlotPool(int slot) |
void |
renewClusterSlots(Jedis jedis) |
void |
reset()
Clear discovered nodes collections and gently release allocated resources
|
JedisPool |
setupNodeIfNotExist(HostAndPort node) |
public JedisClusterInfoCache(org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig, int timeout)
public JedisClusterInfoCache(org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig, int connectionTimeout, int soTimeout, String password, String clientName)
public JedisClusterInfoCache(org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig, int connectionTimeout, int soTimeout, int infiniteSoTimeout, String password, String clientName)
public JedisClusterInfoCache(org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig, int connectionTimeout, int soTimeout, String user, String password, String clientName)
public JedisClusterInfoCache(org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig, int connectionTimeout, int soTimeout, int infiniteSoTimeout, String user, String password, String clientName)
@Deprecated public JedisClusterInfoCache(org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig, int connectionTimeout, int soTimeout, String password, String clientName, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap hostAndPortMap)
public JedisClusterInfoCache(org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig, int connectionTimeout, int soTimeout, String password, String clientName, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, HostAndPortMapper hostAndPortMap)
@Deprecated public JedisClusterInfoCache(org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig, int connectionTimeout, int soTimeout, String user, String password, String clientName, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap hostAndPortMap)
public JedisClusterInfoCache(org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig, int connectionTimeout, int soTimeout, String user, String password, String clientName, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, HostAndPortMapper hostAndPortMap)
@Deprecated public JedisClusterInfoCache(org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig, int connectionTimeout, int soTimeout, int infiniteSoTimeout, String user, String password, String clientName, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap hostAndPortMap)
public JedisClusterInfoCache(org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig, int connectionTimeout, int soTimeout, int infiniteSoTimeout, String user, String password, String clientName, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, HostAndPortMapper hostAndPortMap)
public JedisClusterInfoCache(org.apache.commons.pool2.impl.GenericObjectPoolConfig<Jedis> poolConfig, JedisClientConfig clientConfig)
public void discoverClusterNodesAndSlots(Jedis jedis)
public void renewClusterSlots(Jedis jedis)
public JedisPool setupNodeIfNotExist(HostAndPort node)
public void assignSlotToNode(int slot, HostAndPort targetNode)
public void assignSlotsToNode(List<Integer> targetSlots, HostAndPort targetNode)
public JedisPool getSlotPool(int slot)
public void reset()
public static String getNodeKey(HostAndPort hnp)
@Deprecated public static String getNodeKey(Client client)
@Deprecated public static String getNodeKey(Jedis jedis)
Copyright © 2022. All rights reserved.