Class JedisPoolConfig
java.lang.Object
org.apache.storm.redis.common.config.JedisPoolConfig
- All Implemented Interfaces:
Serializable
Configuration for JedisPool.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder for initializing JedisPoolConfig. -
Constructor Summary
ConstructorDescriptionJedisPoolConfig
(String host, int port, int timeout, String password, int database) Constructor. -
Method Summary
-
Constructor Details
-
JedisPoolConfig
public JedisPoolConfig() -
JedisPoolConfig
Constructor. You can use JedisPoolConfig.Builder() for leaving some fields to apply default value.- Parameters:
host
- hostname or IPport
- porttimeout
- socket / connection timeoutdatabase
- database indexpassword
- password, if any
-
-
Method Details
-
getHost
Returns host.- Returns:
- hostname or IP
-
getPort
public int getPort()Returns port.- Returns:
- port
-
getTimeout
public int getTimeout()Returns timeout.- Returns:
- socket / connection timeout
-
getDatabase
public int getDatabase()Returns database index.- Returns:
- database index
-
getPassword
Returns password.- Returns:
- password
-
toString
-