Package redis.clients.jedis
Class JedisClusterConnectionHandler
- java.lang.Object
-
- redis.clients.jedis.JedisClusterConnectionHandler
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
JedisSlotBasedConnectionHandler
public abstract class JedisClusterConnectionHandler extends Object implements Closeable
-
-
Field Summary
Fields Modifier and Type Field Description protected JedisClusterInfoCachecache
-
Constructor Summary
Constructors Constructor Description JedisClusterConnectionHandler(Set<HostAndPort> nodes, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, int connectionTimeout, int soTimeout, int infiniteSoTimeout, String user, String password, String clientName)JedisClusterConnectionHandler(Set<HostAndPort> nodes, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, int connectionTimeout, int soTimeout, int infiniteSoTimeout, String user, String password, String clientName, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap portMap)JedisClusterConnectionHandler(Set<HostAndPort> nodes, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, int connectionTimeout, int soTimeout, String password)JedisClusterConnectionHandler(Set<HostAndPort> nodes, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, int connectionTimeout, int soTimeout, String password, String clientName)JedisClusterConnectionHandler(Set<HostAndPort> nodes, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, int connectionTimeout, int soTimeout, String password, String clientName, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap portMap)JedisClusterConnectionHandler(Set<HostAndPort> nodes, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, int connectionTimeout, int soTimeout, String user, String password, String clientName)JedisClusterConnectionHandler(Set<HostAndPort> nodes, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, int connectionTimeout, int soTimeout, String user, String password, String clientName, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap portMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()JedisgetConnectionFromNode(HostAndPort node)Map<String,JedisPool>getNodes()voidrenewSlotCache()voidrenewSlotCache(Jedis jedis)
-
-
-
Field Detail
-
cache
protected final JedisClusterInfoCache cache
-
-
Constructor Detail
-
JedisClusterConnectionHandler
public JedisClusterConnectionHandler(Set<HostAndPort> nodes, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, int connectionTimeout, int soTimeout, String password)
-
JedisClusterConnectionHandler
public JedisClusterConnectionHandler(Set<HostAndPort> nodes, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, int connectionTimeout, int soTimeout, String password, String clientName)
-
JedisClusterConnectionHandler
public JedisClusterConnectionHandler(Set<HostAndPort> nodes, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, int connectionTimeout, int soTimeout, String user, String password, String clientName)
-
JedisClusterConnectionHandler
public JedisClusterConnectionHandler(Set<HostAndPort> nodes, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, int connectionTimeout, int soTimeout, int infiniteSoTimeout, String user, String password, String clientName)
-
JedisClusterConnectionHandler
public JedisClusterConnectionHandler(Set<HostAndPort> nodes, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, int connectionTimeout, int soTimeout, String password, String clientName, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap portMap)
-
JedisClusterConnectionHandler
public JedisClusterConnectionHandler(Set<HostAndPort> nodes, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, int connectionTimeout, int soTimeout, String user, String password, String clientName, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap portMap)
-
JedisClusterConnectionHandler
public JedisClusterConnectionHandler(Set<HostAndPort> nodes, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig, int connectionTimeout, int soTimeout, int infiniteSoTimeout, String user, String password, String clientName, boolean ssl, SSLSocketFactory sslSocketFactory, SSLParameters sslParameters, HostnameVerifier hostnameVerifier, JedisClusterHostAndPortMap portMap)
-
-
Method Detail
-
getConnectionFromNode
public Jedis getConnectionFromNode(HostAndPort node)
-
renewSlotCache
public void renewSlotCache()
-
renewSlotCache
public void renewSlotCache(Jedis jedis)
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-