public interface LettuceClientConfiguration
ClientResources
and ClientOptions
specific to Lettuce client features.
Providing optional elements allows a more specific configuration of the client:
ClientResources
ClientOptions
, defaults to ClientOptions
with enabled TimeoutOptions
.ReadFrom
. Enables Master/Replica operations if configured.timeout
timeout
period
RedisStandaloneConfiguration
,
RedisSentinelConfiguration
,
RedisClusterConfiguration
Modifier and Type | Interface and Description |
---|---|
static class |
LettuceClientConfiguration.LettuceClientConfigurationBuilder |
static class |
LettuceClientConfiguration.LettuceSslClientConfigurationBuilder
Builder for SSL-related
LettuceClientConfiguration . |
Modifier and Type | Method and Description |
---|---|
static LettuceClientConfiguration.LettuceClientConfigurationBuilder |
builder()
Creates a new
LettuceClientConfiguration.LettuceClientConfigurationBuilder to build LettuceClientConfiguration to be used with
the Lettuce client. |
static LettuceClientConfiguration |
defaultConfiguration()
Creates a default
LettuceClientConfiguration with:
SSL
no
Peer Verification
yes
Start TLS
no
Client Options
ClientOptions with enabled TimeoutOptions
Client Resources
none
Client name
none
Read From
none
Connect Timeout
60 Seconds
Shutdown Timeout
100 Milliseconds
Shutdown Quiet Period
100 Milliseconds
|
Optional<String> |
getClientName() |
Optional<io.lettuce.core.ClientOptions> |
getClientOptions() |
Optional<io.lettuce.core.resource.ClientResources> |
getClientResources() |
Duration |
getCommandTimeout() |
Optional<io.lettuce.core.ReadFrom> |
getReadFrom()
Note: Redis is undergoing a nomenclature change where the term replica is used synonymously to slave.
|
Duration |
getShutdownQuietPeriod() |
Duration |
getShutdownTimeout() |
boolean |
isStartTls() |
boolean |
isUseSsl() |
boolean |
isVerifyPeer() |
boolean isUseSsl()
boolean isVerifyPeer()
SSL
.boolean isStartTls()
true
if the first write request shouldn't be encrypted).Optional<io.lettuce.core.resource.ClientResources> getClientResources()
ClientResources
.Optional<io.lettuce.core.ClientOptions> getClientOptions()
ClientOptions
.Optional<String> getClientName()
CLIENT SETNAME
.Optional<io.lettuce.core.ReadFrom> getReadFrom()
ReadFrom
setting.Duration getCommandTimeout()
Duration getShutdownTimeout()
AbstractRedisClient.shutdown(long, long, TimeUnit)
Duration getShutdownQuietPeriod()
AbstractRedisClient.shutdown(long, long, TimeUnit)
static LettuceClientConfiguration.LettuceClientConfigurationBuilder builder()
LettuceClientConfiguration.LettuceClientConfigurationBuilder
to build LettuceClientConfiguration
to be used with
the Lettuce client.LettuceClientConfiguration.LettuceClientConfigurationBuilder
to build LettuceClientConfiguration
.static LettuceClientConfiguration defaultConfiguration()
LettuceClientConfiguration
with:
ClientOptions
with enabled TimeoutOptions
LettuceClientConfiguration
with defaults.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.