Class JedisPoolConfig.Builder
java.lang.Object
org.apache.storm.redis.common.config.JedisPoolConfig.Builder
- Enclosing class:
- JedisPoolConfig
Builder for initializing JedisPoolConfig.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds JedisPoolConfig.setDatabase
(int database) Sets database index.Sets host.setPassword
(String password) Sets password.setPort
(int port) Sets port.setTimeout
(int timeout) Sets timeout.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setHost
Sets host.- Parameters:
host
- host- Returns:
- Builder itself
-
setPort
Sets port.- Parameters:
port
- port- Returns:
- Builder itself
-
setTimeout
Sets timeout.- Parameters:
timeout
- timeout- Returns:
- Builder itself
-
setDatabase
Sets database index.- Parameters:
database
- database index- Returns:
- Builder itself
-
setPassword
Sets password.- Parameters:
password
- password, if any- Returns:
- Builder itself
-
build
Builds JedisPoolConfig.- Returns:
- JedisPoolConfig
-