public static class JedisPoolConfig.Builder extends Object
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)
host
- hostpublic JedisPoolConfig.Builder setPort(int port)
port
- portpublic JedisPoolConfig.Builder setTimeout(int timeout)
timeout
- timeoutpublic JedisPoolConfig.Builder setDatabase(int database)
database
- database indexpublic JedisPoolConfig.Builder setPassword(String password)
password
- password, if anypublic JedisPoolConfig build()
Copyright © 2023 The Apache Software Foundation. All rights reserved.