Package com.reve.redis.cluster
Class Connector
java.lang.Object
com.reve.redis.cluster.Connector
- All Implemented Interfaces:
Callable<redis.clients.jedis.JedisCluster>
This class will asynchronously connect to the redis cluster.
If connection is successful it will return a
JedisCluster instance-
Constructor Summary
ConstructorsConstructorDescriptionConnector(LinkedBlockingQueue<redis.clients.jedis.JedisCluster> clusterConnections, Set<redis.clients.jedis.HostAndPort> jedisClusterAddresses, String redisPassword, com.reve.websocket.ssl.SSLConfiguration configuration) Creates a connector process which can be run buExecutorServicein background -
Method Summary
Modifier and TypeMethodDescriptionredis.clients.jedis.JedisClustercall()Asynchronous call to connect the redis cluster
-
Constructor Details
-
Connector
public Connector(LinkedBlockingQueue<redis.clients.jedis.JedisCluster> clusterConnections, Set<redis.clients.jedis.HostAndPort> jedisClusterAddresses, String redisPassword, com.reve.websocket.ssl.SSLConfiguration configuration) Creates a connector process which can be run buExecutorServicein background- Parameters:
clusterConnections- this process will create aJedisClusterconnection to the given server and add it in this connection listjedisClusterAddresses- this list must contain at lease one nodeHostAndPortto connect to the clusterredisPassword- the redis password to connect to redis nodeconfiguration- the instance ofSSLConfigurationif ssl is enable for remote redis cluster, user must send this configuration otherwise null for non ssl redis cluster
-
-
Method Details