public class JedisPoolConfig extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
JedisPoolConfig.Builder
Builder for initializing JedisPoolConfig.
|
Constructor and Description |
---|
JedisPoolConfig() |
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.
|
String |
toString() |
public JedisPoolConfig()
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 © 2023 The Apache Software Foundation. All rights reserved.