public class JedisPoolConfig extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
JedisPoolConfig.Builder
Builder for initializing JedisPoolConfig.
|
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_HOST |
Constructor and Description |
---|
JedisPoolConfig(String host,
int port,
int timeout,
String password,
int database)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getDatabase()
Returns database index.
|
String |
getHost()
Returns host.
|
String |
getPassword()
Returns password.
|
int |
getPort()
Returns port.
|
int |
getTimeout()
Returns timeout.
|
public static final String DEFAULT_HOST
public JedisPoolConfig(String host, int port, int timeout, String password, int database)
host
- hostname or IPport
- porttimeout
- socket / connection timeoutdatabase
- database indexpassword
- password, if anypublic String getHost()
public int getPort()
public int getTimeout()
public int getDatabase()
public String getPassword()
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.