public static class JedisClusterConfig.Builder extends Object
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)
nodes
- list of nodepublic JedisClusterConfig.Builder setTimeout(int timeout)
timeout
- socket / connection timeoutpublic JedisClusterConfig.Builder setMaxRedirections(int maxRedirections)
maxRedirections
- limit of redirectionpublic JedisClusterConfig.Builder setPassword(String password)
password
- password, if anypublic JedisClusterConfig build()
Copyright © 2023 The Apache Software Foundation. All rights reserved.