public class RedisSentinelInstance extends Object implements RedisInstance, Serializable
RedisInstance.Role
Constructor and Description |
---|
RedisSentinelInstance() |
RedisSentinelInstance(List<String> monitoredMasters)
Constructs a
RedisSentinelInstance |
Modifier and Type | Method and Description |
---|---|
List<String> |
getMonitoredMasters() |
RedisInstance.Role |
getRole() |
void |
setMonitoredMasters(List<String> monitoredMasters) |
String |
toString() |
public RedisSentinelInstance()
public RedisSentinelInstance(List<String> monitoredMasters)
RedisSentinelInstance
monitoredMasters
- list of monitored masters, must not be null
but may be emptypublic RedisInstance.Role getRole()
getRole
in interface RedisInstance
RedisInstance.Role.SENTINEL
.public List<String> getMonitoredMasters()
Copyright © 2020 lettuce.io. All rights reserved.