public static class FlinkJedisPoolConfig.Builder extends Object
FlinkJedisPoolConfig
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
FlinkJedisPoolConfig |
build()
Builds JedisPoolConfig.
|
FlinkJedisPoolConfig.Builder |
setDatabase(int database)
Sets database index.
|
FlinkJedisPoolConfig.Builder |
setHost(String host)
Sets host.
|
FlinkJedisPoolConfig.Builder |
setMaxIdle(int maxIdle)
Sets value for the
maxIdle configuration attribute
for pools to be created with this configuration instance. |
FlinkJedisPoolConfig.Builder |
setMaxTotal(int maxTotal)
Sets value for the
maxTotal configuration attribute
for pools to be created with this configuration instance. |
FlinkJedisPoolConfig.Builder |
setMinIdle(int minIdle)
Sets value for the
minIdle configuration attribute
for pools to be created with this configuration instance. |
FlinkJedisPoolConfig.Builder |
setPassword(String password)
Sets password.
|
FlinkJedisPoolConfig.Builder |
setPort(int port)
Sets port.
|
FlinkJedisPoolConfig.Builder |
setTimeout(int timeout)
Sets timeout.
|
public FlinkJedisPoolConfig.Builder setMaxTotal(int maxTotal)
maxTotal
configuration attribute
for pools to be created with this configuration instance.maxTotal
- maxTotal the maximum number of objects that can be allocated by the pool, default value is 8public FlinkJedisPoolConfig.Builder setMaxIdle(int maxIdle)
maxIdle
configuration attribute
for pools to be created with this configuration instance.maxIdle
- the cap on the number of "idle" instances in the pool, default value is 8public FlinkJedisPoolConfig.Builder setMinIdle(int minIdle)
minIdle
configuration attribute
for pools to be created with this configuration instance.minIdle
- the minimum number of idle objects to maintain in the pool, default value is 0public FlinkJedisPoolConfig.Builder setHost(String host)
host
- hostpublic FlinkJedisPoolConfig.Builder setPort(int port)
port
- port, default value is 6379public FlinkJedisPoolConfig.Builder setTimeout(int timeout)
timeout
- timeout, default value is 2000public FlinkJedisPoolConfig.Builder setDatabase(int database)
database
- database index, default value is 0public FlinkJedisPoolConfig.Builder setPassword(String password)
password
- password, if anypublic FlinkJedisPoolConfig build()
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.