public interface JedisClientConfiguration
SSLSocketFactory
and JedisPoolConfig
specific to jedis client features.
Providing optional elements allows a more specific configuration of the client:
SSLSocketFactory
SSLParameters
HostnameVerifier
GenericObjectPoolConfig
timeout
timeout
Jedis
,
RedisStandaloneConfiguration
,
RedisSentinelConfiguration
,
RedisClusterConfiguration
Modifier and Type | Interface and Description |
---|---|
static class |
JedisClientConfiguration.DefaultJedisClientConfigurationBuilder
Default
JedisClientConfiguration.JedisClientConfigurationBuilder implementation to build an immutable
JedisClientConfiguration . |
static interface |
JedisClientConfiguration.JedisClientConfigurationBuilder
Builder for
JedisClientConfiguration . |
static interface |
JedisClientConfiguration.JedisPoolingClientConfigurationBuilder
Builder for Pooling-related
JedisClientConfiguration . |
static interface |
JedisClientConfiguration.JedisSslClientConfigurationBuilder
Builder for SSL-related
JedisClientConfiguration . |
Modifier and Type | Method and Description |
---|---|
static JedisClientConfiguration.JedisClientConfigurationBuilder |
builder()
Creates a new
JedisClientConfiguration.JedisClientConfigurationBuilder to build JedisClientConfiguration to be used with the
jedis client. |
static JedisClientConfiguration |
defaultConfiguration()
Creates a default
JedisClientConfiguration . |
Optional<String> |
getClientName() |
Duration |
getConnectTimeout() |
Optional<HostnameVerifier> |
getHostnameVerifier() |
Optional<org.apache.commons.pool2.impl.GenericObjectPoolConfig> |
getPoolConfig() |
Duration |
getReadTimeout() |
Optional<SSLParameters> |
getSslParameters() |
Optional<SSLSocketFactory> |
getSslSocketFactory() |
boolean |
isUsePooling() |
boolean |
isUseSsl() |
boolean isUseSsl()
Optional<SSLSocketFactory> getSslSocketFactory()
SSLSocketFactory
.Optional<SSLParameters> getSslParameters()
SSLParameters
.Optional<HostnameVerifier> getHostnameVerifier()
HostnameVerifier
.boolean isUsePooling()
Optional<org.apache.commons.pool2.impl.GenericObjectPoolConfig> getPoolConfig()
GenericObjectPoolConfig
.Optional<String> getClientName()
CLIENT SETNAME
.Duration getConnectTimeout()
Socket.connect(SocketAddress, int)
Duration getReadTimeout()
Socket.setSoTimeout(int)
static JedisClientConfiguration.JedisClientConfigurationBuilder builder()
JedisClientConfiguration.JedisClientConfigurationBuilder
to build JedisClientConfiguration
to be used with the
jedis client.JedisClientConfiguration.JedisClientConfigurationBuilder
to build JedisClientConfiguration
.static JedisClientConfiguration defaultConfiguration()
JedisClientConfiguration
.
JedisClientConfiguration
with defaults.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.