接口 RedisConnectionDetails.Sentinel
- 封闭接口:
RedisConnectionDetails
public static interface RedisConnectionDetails.Sentinel
Redis sentinel configuration.
-
方法详细资料
-
getDatabase
int getDatabase()Database index used by the connection factory.- 返回:
- the database index used by the connection factory
-
getMaster
String getMaster()Name of the Redis server.- 返回:
- the name of the Redis server
-
getNodes
List<RedisConnectionDetails.Node> getNodes()List of nodes.- 返回:
- the list of nodes
-
getUsername
String getUsername()Login username for authenticating with sentinel(s).- 返回:
- the login username for authenticating with sentinel(s) or
null
-
getPassword
String getPassword()Password for authenticating with sentinel(s).- 返回:
- the password for authenticating with sentinel(s) or
null
-
getSslBundle
SSL bundle to use.- 返回:
- the SSL bundle to use
- 从以下版本开始:
- 3.5.0
-