public static class JedisClusterConfig.Builder extends Object
Builder for initializing JedisClusterConfig.
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
JedisClusterConfig |
build()
Builds JedisClusterConfig.
|
JedisClusterConfig.Builder |
setMaxRedirections(int maxRedirections)
Sets limit of redirection.
|
JedisClusterConfig.Builder |
setNodes(Set<InetSocketAddress> nodes)
Sets list of node.
|
JedisClusterConfig.Builder |
setPassword(String password)
Sets password.
|
JedisClusterConfig.Builder |
setTimeout(int timeout)
Sets socket / connection timeout.
|
public JedisClusterConfig.Builder setNodes(Set<InetSocketAddress> nodes)
Sets list of node.
nodes
- list of nodepublic JedisClusterConfig.Builder setTimeout(int timeout)
Sets socket / connection timeout.
timeout
- socket / connection timeoutpublic JedisClusterConfig.Builder setMaxRedirections(int maxRedirections)
Sets limit of redirection.
maxRedirections
- limit of redirectionpublic JedisClusterConfig.Builder setPassword(String password)
Sets password.
password
- password, if anypublic JedisClusterConfig build()
Builds JedisClusterConfig.
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.