public interface JedisClientConfig
| Modifier and Type | Method and Description |
|---|---|
default AuthXManager |
getAuthXManager() |
default int |
getBlockingSocketTimeoutMillis() |
default java.lang.String |
getClientName() |
default ClientSetInfoConfig |
getClientSetInfoConfig()
Modify the behavior of internally executing CLIENT SETINFO command.
|
default int |
getConnectionTimeoutMillis() |
default java.util.function.Supplier<RedisCredentials> |
getCredentialsProvider() |
default int |
getDatabase() |
default HostAndPortMapper |
getHostAndPortMapper() |
default javax.net.ssl.HostnameVerifier |
getHostnameVerifier() |
default java.lang.String |
getPassword() |
default RedisProtocol |
getRedisProtocol() |
default int |
getSocketTimeoutMillis() |
default SslOptions |
getSslOptions()
TLS/SSL configuration.
|
default javax.net.ssl.SSLParameters |
getSslParameters()
Deprecated.
since 7.4.2, use
getSslOptions() instead. |
default javax.net.ssl.SSLSocketFactory |
getSslSocketFactory()
Deprecated.
since 7.4.2, use
getSslOptions() instead. |
default java.lang.String |
getUser() |
default boolean |
isReadOnlyForRedisClusterReplicas()
Execute READONLY command to connections.
|
default boolean |
isSsl()
Whether TLS/SSL should be used for connections.
|
default RedisProtocol getRedisProtocol()
default int getConnectionTimeoutMillis()
default int getSocketTimeoutMillis()
default int getBlockingSocketTimeoutMillis()
default java.lang.String getUser()
default java.lang.String getPassword()
default java.util.function.Supplier<RedisCredentials> getCredentialsProvider()
default AuthXManager getAuthXManager()
default int getDatabase()
default java.lang.String getClientName()
default boolean isSsl()
A TLS connection is established when this returns true or when getSslOptions()
returns a non-null value. If both are provided, getSslOptions() takes
precedence.
true if TLS/SSL is enabled, false otherwisegetSslOptions()@Deprecated default javax.net.ssl.SSLSocketFactory getSslSocketFactory()
getSslOptions() instead.SSLSocketFactory to use for TLS connections.
Consulted only when getSslOptions() returns null. Implementations should
return null to use the JVM default.
null to use the defaultgetSslOptions()@Deprecated default javax.net.ssl.SSLParameters getSslParameters()
getSslOptions() instead.SSLParameters to apply to TLS sockets.
Consulted only when getSslOptions() returns null. Implementations should
return null to let the client apply defaults (which enable HTTPS hostname
verification).
null for defaultsgetSslOptions()default SslOptions getSslOptions()
When non-null, TLS is enabled and this takes precedence over
getSslSocketFactory() and getSslParameters(). Implementations should return
null to fall back to isSsl() / getSslSocketFactory() /
getSslParameters().
null if not configuredSslOptions,
SslVerifyModedefault javax.net.ssl.HostnameVerifier getHostnameVerifier()
default HostAndPortMapper getHostAndPortMapper()
default boolean isReadOnlyForRedisClusterReplicas()
READONLY command is specific to Redis Cluster replica nodes. So this config param is only intended for Redis Cluster connections.
true - to execute READONLY command to connection(s). false - otherwise.default ClientSetInfoConfig getClientSetInfoConfig()
Copyright © 2026. All rights reserved.