Class JedisClusterConfig
java.lang.Object
org.apache.storm.redis.common.config.JedisClusterConfig
- All Implemented Interfaces:
- Serializable
Configuration for JedisCluster.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder for initializing JedisClusterConfig.
- 
Constructor SummaryConstructorsConstructorDescriptionJedisClusterConfig(Set<InetSocketAddress> nodes, int timeout, int maxRedirections) ConstructorJedisClusterConfig(Set<InetSocketAddress> nodes, int timeout, int maxRedirections, String password) Constructor
- 
Method Summary
- 
Constructor Details- 
JedisClusterConfigpublic JedisClusterConfig()
- 
JedisClusterConfigConstructor You can use JedisClusterConfig.Builder() for leaving some fields to apply default value. Note that list of node is mandatory, and when you didn't set nodes, it throws NullPointerException.- Parameters:
- nodes- list of node information for JedisCluster
- timeout- socket / connection timeout
- maxRedirections- limit of redirections - how much we'll follow MOVED or ASK
- Throws:
- NullPointerException- when you didn't set nodes
 
- 
JedisClusterConfigpublic JedisClusterConfig(Set<InetSocketAddress> nodes, int timeout, int maxRedirections, String password) Constructor You can use JedisClusterConfig.Builder() for leaving some fields to apply default value. Note that list of node is mandatory, and when you didn't set nodes, it throws NullPointerException.- Parameters:
- nodes- list of node information for JedisCluster
- timeout- socket / connection timeout
- maxRedirections- limit of redirections - how much we'll follow MOVED or ASK
- password- password, if any
- Throws:
- NullPointerException- when you didn't set nodes
 
 
- 
- 
Method Details- 
getNodesReturns nodes.- Returns:
- list of node information
 
- 
getTimeoutpublic int getTimeout()Returns socket / connection timeout.- Returns:
- socket / connection timeout
 
- 
getMaxRedirectionspublic int getMaxRedirections()Returns limit of redirection.- Returns:
- limit of redirection
 
- 
getPasswordReturns password.- Returns:
- password
 
 
-