public class JedisClusterConfig extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
JedisClusterConfig.Builder
Builder for initializing JedisClusterConfig.
|
Constructor and Description |
---|
JedisClusterConfig(Set<InetSocketAddress> nodes,
int timeout,
int maxRedirections)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getMaxRedirections()
Returns limit of redirection.
|
Set<redis.clients.jedis.HostAndPort> |
getNodes()
Returns nodes.
|
int |
getTimeout()
Returns socket / connection timeout.
|
public JedisClusterConfig(Set<InetSocketAddress> nodes, int timeout, int maxRedirections)
nodes
- list of node information for JedisClustertimeout
- socket / connection timeoutmaxRedirections
- limit of redirections - how much we'll follow MOVED or ASKNullPointerException
- when you didn't set nodespublic Set<redis.clients.jedis.HostAndPort> getNodes()
public int getTimeout()
public int getMaxRedirections()
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.