Interface LettucePoolingClientConfiguration
- All Superinterfaces:
LettuceClientConfiguration
Redis client configuration for lettuce using a driver level pooled connection by adding pooling specific
configuration to
LettuceClientConfiguration
.- Since:
- 2.0
- Author:
- Mark Paluch, Christoph Strobl, Yanming Zhou
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static class
Nested classes/interfaces inherited from interface org.springframework.data.redis.connection.lettuce.LettuceClientConfiguration
LettuceClientConfiguration.LettuceClientConfigurationBuilder, LettuceClientConfiguration.LettuceSslClientConfigurationBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a newLettucePoolingClientConfiguration.LettucePoolingClientConfigurationBuilder
to buildLettucePoolingClientConfiguration
to be used with the Lettuce client.Creates a defaultLettucePoolingClientConfiguration
with SSL no Peer Verification yes Start TLS no Client OptionsClientOptions
with enabledTimeoutOptions
Client Resources none Client name none Read From none Connect Timeout 60 Seconds Shutdown Timeout 100 Milliseconds Shutdown Quiet Period 100 Milliseconds pool config defaultGenericObjectPoolConfig
org.apache.commons.pool2.impl.GenericObjectPoolConfig
Methods inherited from interface org.springframework.data.redis.connection.lettuce.LettuceClientConfiguration
getClientName, getClientOptions, getClientResources, getCommandTimeout, getReadFrom, getRedisCredentialsProviderFactory, getShutdownQuietPeriod, getShutdownTimeout, isStartTls, isUseSsl, isVerifyPeer
-
Method Details
-
getPoolConfig
org.apache.commons.pool2.impl.GenericObjectPoolConfig getPoolConfig()- Returns:
- the
GenericObjectPoolConfig
. Never null.
-
builder
Creates a newLettucePoolingClientConfiguration.LettucePoolingClientConfigurationBuilder
to buildLettucePoolingClientConfiguration
to be used with the Lettuce client. -
defaultConfiguration
Creates a defaultLettucePoolingClientConfiguration
with- SSL
- no
- Peer Verification
- yes
- Start TLS
- no
- Client Options
ClientOptions
with enabledTimeoutOptions
- Client Resources
- none
- Client name
- none
- Read From
- none
- Connect Timeout
- 60 Seconds
- Shutdown Timeout
- 100 Milliseconds
- Shutdown Quiet Period
- 100 Milliseconds
- pool config
- default
GenericObjectPoolConfig
- Returns:
- a
LettucePoolingClientConfiguration
with defaults.
-