java.lang.Object
io.lettuce.core.models.role.RedisSentinelInstance
- All Implemented Interfaces:
RedisInstance,Serializable
public class RedisSentinelInstance extends Object implements RedisInstance, Serializable
Redis sentinel instance.
- Since:
- 3.0
- Author:
- Mark Paluch
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.lettuce.core.models.role.RedisInstance
RedisInstance.Role -
Constructor Summary
Constructors Constructor Description RedisSentinelInstance()RedisSentinelInstance(List<String> monitoredMasters)Constructs aRedisSentinelInstance -
Method Summary
Modifier and Type Method Description List<String>getMonitoredMasters()RedisInstance.RolegetRole()voidsetMonitoredMasters(List<String> monitoredMasters)StringtoString()
-
Constructor Details
-
RedisSentinelInstance
public RedisSentinelInstance() -
RedisSentinelInstance
Constructs aRedisSentinelInstance- Parameters:
monitoredMasters- list of monitored masters, must not benullbut may be empty
-
-
Method Details
-
getRole
- Specified by:
getRolein interfaceRedisInstance- Returns:
- always
RedisInstance.Role.SENTINEL
-
getMonitoredMasters
- Returns:
- List of monitored master names.
-
setMonitoredMasters
-
toString
-