public final class DefaultJedisClientConfig extends java.lang.Object implements JedisClientConfig
Modifier and Type | Class and Description |
---|---|
static class |
DefaultJedisClientConfig.Builder |
Modifier and Type | Method and Description |
---|---|
static DefaultJedisClientConfig.Builder |
builder() |
static DefaultJedisClientConfig |
copyConfig(JedisClientConfig copy)
|
static DefaultJedisClientConfig |
create(int connectionTimeoutMillis,
int soTimeoutMillis,
int blockingSocketTimeoutMillis,
java.lang.String user,
java.lang.String password,
int database,
java.lang.String clientName,
boolean ssl,
javax.net.ssl.SSLSocketFactory sslSocketFactory,
javax.net.ssl.SSLParameters sslParameters,
javax.net.ssl.HostnameVerifier hostnameVerifier,
HostAndPortMapper hostAndPortMapper)
Deprecated.
|
AuthXManager |
getAuthXManager() |
int |
getBlockingSocketTimeoutMillis() |
java.lang.String |
getClientName() |
ClientSetInfoConfig |
getClientSetInfoConfig()
Modify the behavior of internally executing CLIENT SETINFO command.
|
int |
getConnectionTimeoutMillis() |
java.util.function.Supplier<RedisCredentials> |
getCredentialsProvider() |
int |
getDatabase() |
HostAndPortMapper |
getHostAndPortMapper() |
javax.net.ssl.HostnameVerifier |
getHostnameVerifier() |
java.lang.String |
getPassword() |
RedisProtocol |
getRedisProtocol() |
int |
getSocketTimeoutMillis() |
SslOptions |
getSslOptions()
JedisClientConfig.isSsl() , JedisClientConfig.getSslSocketFactory() and
JedisClientConfig.getSslParameters() will be ignored if
this is set. |
javax.net.ssl.SSLParameters |
getSslParameters() |
javax.net.ssl.SSLSocketFactory |
getSslSocketFactory() |
java.lang.String |
getUser() |
boolean |
isReadOnlyForRedisClusterReplicas()
Execute READONLY command to connections.
|
boolean |
isSsl() |
public RedisProtocol getRedisProtocol()
getRedisProtocol
in interface JedisClientConfig
public int getConnectionTimeoutMillis()
getConnectionTimeoutMillis
in interface JedisClientConfig
public int getSocketTimeoutMillis()
getSocketTimeoutMillis
in interface JedisClientConfig
public int getBlockingSocketTimeoutMillis()
getBlockingSocketTimeoutMillis
in interface JedisClientConfig
public java.lang.String getUser()
getUser
in interface JedisClientConfig
public java.lang.String getPassword()
getPassword
in interface JedisClientConfig
public java.util.function.Supplier<RedisCredentials> getCredentialsProvider()
getCredentialsProvider
in interface JedisClientConfig
public AuthXManager getAuthXManager()
getAuthXManager
in interface JedisClientConfig
public int getDatabase()
getDatabase
in interface JedisClientConfig
public java.lang.String getClientName()
getClientName
in interface JedisClientConfig
public boolean isSsl()
isSsl
in interface JedisClientConfig
true
- to create TLS connection(s). false
- otherwise.public javax.net.ssl.SSLSocketFactory getSslSocketFactory()
getSslSocketFactory
in interface JedisClientConfig
public javax.net.ssl.SSLParameters getSslParameters()
getSslParameters
in interface JedisClientConfig
public SslOptions getSslOptions()
JedisClientConfig
JedisClientConfig.isSsl()
, JedisClientConfig.getSslSocketFactory()
and
JedisClientConfig.getSslParameters()
will be ignored if
this
is set.getSslOptions
in interface JedisClientConfig
public javax.net.ssl.HostnameVerifier getHostnameVerifier()
getHostnameVerifier
in interface JedisClientConfig
public HostAndPortMapper getHostAndPortMapper()
getHostAndPortMapper
in interface JedisClientConfig
public ClientSetInfoConfig getClientSetInfoConfig()
JedisClientConfig
getClientSetInfoConfig
in interface JedisClientConfig
public boolean isReadOnlyForRedisClusterReplicas()
JedisClientConfig
READONLY command is specific to Redis Cluster replica nodes. So this config param is only intended for Redis Cluster connections.
isReadOnlyForRedisClusterReplicas
in interface JedisClientConfig
true
- to execute READONLY command to connection(s). false
- otherwise.public static DefaultJedisClientConfig.Builder builder()
@Deprecated public static DefaultJedisClientConfig create(int connectionTimeoutMillis, int soTimeoutMillis, int blockingSocketTimeoutMillis, java.lang.String user, java.lang.String password, int database, java.lang.String clientName, boolean ssl, javax.net.ssl.SSLSocketFactory sslSocketFactory, javax.net.ssl.SSLParameters sslParameters, javax.net.ssl.HostnameVerifier hostnameVerifier, HostAndPortMapper hostAndPortMapper)
DefaultJedisClientConfig.Builder
.@Deprecated public static DefaultJedisClientConfig copyConfig(JedisClientConfig copy)
Copyright © 2025. All rights reserved.