Package redis.clients.jedis
Interface JedisClientConfig
-
- All Known Implementing Classes:
DefaultJedisClientConfig
public interface JedisClientConfigJedisClientConfig compatibility interface for Valkey GLIDE wrapper.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default AuthXManagergetAuthXManager()default intgetBlockingSocketTimeoutMillis()default java.lang.StringgetClientName()default ClientSetInfoConfiggetClientSetInfoConfig()Modify the behavior of internally executing CLIENT SETINFO command.default intgetConnectionTimeoutMillis()default java.util.function.Supplier<RedisCredentials>getCredentialsProvider()default intgetDatabase()default HostAndPortMappergetHostAndPortMapper()default javax.net.ssl.HostnameVerifiergetHostnameVerifier()default java.lang.StringgetPassword()default RedisProtocolgetRedisProtocol()default intgetSocketTimeoutMillis()default SslOptionsgetSslOptions()default javax.net.ssl.SSLParametersgetSslParameters()default javax.net.ssl.SSLSocketFactorygetSslSocketFactory()default java.lang.StringgetUser()default booleanisReadOnlyForRedisClusterReplicas()Execute READONLY command to connections.default booleanisSsl()
-
-
-
Method Detail
-
getRedisProtocol
default RedisProtocol getRedisProtocol()
-
getConnectionTimeoutMillis
default int getConnectionTimeoutMillis()
- Returns:
- Connection timeout in milliseconds
-
getSocketTimeoutMillis
default int getSocketTimeoutMillis()
- Returns:
- Socket timeout in milliseconds
-
getBlockingSocketTimeoutMillis
default int getBlockingSocketTimeoutMillis()
- Returns:
- Socket timeout (in milliseconds) to use during blocking operation. Default is '0', which means to block forever.
-
getUser
default java.lang.String getUser()
- Returns:
- Redis ACL user
-
getPassword
default java.lang.String getPassword()
-
getCredentialsProvider
default java.util.function.Supplier<RedisCredentials> getCredentialsProvider()
-
getAuthXManager
default AuthXManager getAuthXManager()
-
getDatabase
default int getDatabase()
-
getClientName
default java.lang.String getClientName()
-
isSsl
default boolean isSsl()
- Returns:
true- to create TLS connection(s).false- otherwise.
-
getSslSocketFactory
default javax.net.ssl.SSLSocketFactory getSslSocketFactory()
-
getSslParameters
default javax.net.ssl.SSLParameters getSslParameters()
-
getSslOptions
default SslOptions getSslOptions()
- Returns:
- ssl options
-
getHostnameVerifier
default javax.net.ssl.HostnameVerifier getHostnameVerifier()
-
getHostAndPortMapper
default HostAndPortMapper getHostAndPortMapper()
-
isReadOnlyForRedisClusterReplicas
default boolean isReadOnlyForRedisClusterReplicas()
Execute READONLY command to connections.READONLY command is specific to Redis Cluster replica nodes. So this config param is only intended for Redis Cluster connections.
- Returns:
true- to execute READONLY command to connection(s).false- otherwise.
-
getClientSetInfoConfig
default ClientSetInfoConfig getClientSetInfoConfig()
Modify the behavior of internally executing CLIENT SETINFO command.- Returns:
- CLIENT SETINFO config
-
-