Class JedisClusterConfig.Builder
java.lang.Object
org.apache.storm.redis.common.config.JedisClusterConfig.Builder
- Enclosing class:
- JedisClusterConfig
Builder for initializing JedisClusterConfig.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds JedisClusterConfig.setMaxRedirections
(int maxRedirections) Sets limit of redirection.setNodes
(Set<InetSocketAddress> nodes) Sets list of node.setPassword
(String password) Sets password.setTimeout
(int timeout) Sets socket / connection timeout.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setNodes
Sets list of node.- Parameters:
nodes
- list of node- Returns:
- Builder itself
-
setTimeout
Sets socket / connection timeout.- Parameters:
timeout
- socket / connection timeout- Returns:
- Builder itself
-
setMaxRedirections
Sets limit of redirection.- Parameters:
maxRedirections
- limit of redirection- Returns:
- Builder itself
-
setPassword
Sets password.- Parameters:
password
- password, if any- Returns:
- Builder itself
-
build
Builds JedisClusterConfig.- Returns:
- JedisClusterConfig
-