public static class JedisPoolConfig.Builder extends Object
Builder for initializing JedisPoolConfig.
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
JedisPoolConfig |
build()
Builds JedisPoolConfig.
|
JedisPoolConfig.Builder |
setDatabase(int database)
Sets database index.
|
JedisPoolConfig.Builder |
setHost(String host)
Sets host.
|
JedisPoolConfig.Builder |
setPassword(String password)
Sets password.
|
JedisPoolConfig.Builder |
setPort(int port)
Sets port.
|
JedisPoolConfig.Builder |
setTimeout(int timeout)
Sets timeout.
|
public JedisPoolConfig.Builder setHost(String host)
Sets host.
host
- hostpublic JedisPoolConfig.Builder setPort(int port)
Sets port.
port
- portpublic JedisPoolConfig.Builder setTimeout(int timeout)
Sets timeout.
timeout
- timeoutpublic JedisPoolConfig.Builder setDatabase(int database)
Sets database index.
database
- database indexpublic JedisPoolConfig.Builder setPassword(String password)
Sets password.
password
- password, if anypublic JedisPoolConfig build()
Builds JedisPoolConfig.
Copyright © 2022 The Apache Software Foundation. All Rights Reserved.