public static class LettuceClientConfiguration.LettuceClientConfigurationBuilder extends Object
public LettuceClientConfiguration.LettuceClientConfigurationBuilder apply(io.lettuce.core.RedisURI redisUri)
RedisURI
.redisUri
- the connection URI.public LettuceClientConfiguration.LettuceSslClientConfigurationBuilder useSsl()
public LettuceClientConfiguration.LettuceClientConfigurationBuilder clientResources(io.lettuce.core.resource.ClientResources clientResources)
ClientResources
.clientResources
- must not be null.IllegalArgumentException
- if clientResources is null.public LettuceClientConfiguration.LettuceClientConfigurationBuilder clientOptions(io.lettuce.core.ClientOptions clientOptions)
ClientOptions
.clientOptions
- must not be null.IllegalArgumentException
- if clientOptions is null.public LettuceClientConfiguration.LettuceClientConfigurationBuilder readFrom(io.lettuce.core.ReadFrom readFrom)
ReadFrom
. Enables Master/Replica operations if configured. readFrom
- must not be null.IllegalArgumentException
- if clientOptions is null.public LettuceClientConfiguration.LettuceClientConfigurationBuilder clientName(String clientName)
clientName
to be set with CLIENT SETNAME
.clientName
- must not be null or empty.IllegalArgumentException
- if clientName is null or empty.public LettuceClientConfiguration.LettuceClientConfigurationBuilder commandTimeout(Duration timeout)
timeout
- must not be null.IllegalArgumentException
- if timeout is null.public LettuceClientConfiguration.LettuceClientConfigurationBuilder shutdownTimeout(Duration shutdownTimeout)
shutdownTimeout
- must not be null.IllegalArgumentException
- if shutdownTimeout is null.public LettuceClientConfiguration.LettuceClientConfigurationBuilder shutdownQuietPeriod(Duration shutdownQuietPeriod)
shutdownQuietPeriod
- must not be null.IllegalArgumentException
- if shutdownQuietPeriod is null.public LettuceClientConfiguration build()
LettuceClientConfiguration
with the configuration applied from this builder.LettuceClientConfiguration
object.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.