接口 RedisConnectionDetails.Sentinel
- 封闭接口:
RedisConnectionDetails
public static interface RedisConnectionDetails.Sentinel
Redis sentinel configuration.
-
方法概要
修饰符和类型方法说明int
Database index used by the connection factory.Name of the Redis server.getNodes()
List of nodes.Password for authenticating with sentinel(s).Login username for authenticating with sentinel(s).
-
方法详细资料
-
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
-