Package org.redisson.redisnode
Class RedissonSentinelMasterSlaveNodes
-
- org.redisson.redisnode.RedissonBaseNodes
-
- org.redisson.redisnode.RedissonMasterSlaveNodes
-
- org.redisson.redisnode.RedissonSentinelMasterSlaveNodes
-
- All Implemented Interfaces:
BaseRedisNodes
,RedisMasterSlave
,RedisSentinelMasterSlave
public class RedissonSentinelMasterSlaveNodes extends RedissonMasterSlaveNodes implements RedisSentinelMasterSlave
- Author:
- Nikita Koksharov
-
-
Constructor Summary
Constructors Constructor Description RedissonSentinelMasterSlaveNodes(ConnectionManager connectionManager, CommandAsyncExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RedisSentinel
address)
Returns Redis Sentinel node by defined address.<RedisSentinel>
getSentinels()
Returns collection of Redis Sentinel nodes belongs to this Redis setup.-
Methods inherited from class org.redisson.redisnode.RedissonMasterSlaveNodes
getMaster, getMaster, getSlave, getSlaves
-
Methods inherited from class org.redisson.redisnode.RedissonBaseNodes
getNode, getNodes, getNodes, pingAll, pingAll
-
Methods inherited from interface org.redisson.api.redisnode.BaseRedisNodes
pingAll, pingAll
-
Methods inherited from interface org.redisson.api.redisnode.RedisMasterSlave
getMaster, getMaster, getSlave, getSlaves
-
-
-
-
Constructor Detail
-
RedissonSentinelMasterSlaveNodes
public RedissonSentinelMasterSlaveNodes(ConnectionManager connectionManager, CommandAsyncExecutor commandExecutor)
-
-
Method Detail
-
getSentinels
public <RedisSentinel> getSentinels()
Description copied from interface:RedisSentinelMasterSlave
Returns collection of Redis Sentinel nodes belongs to this Redis setup.- Specified by:
getSentinels
in interfaceRedisSentinelMasterSlave
- Returns:
- Redis Sentinel nodes
-
getSentinel
public address)
Description copied from interface:RedisSentinelMasterSlave
Returns Redis Sentinel node by defined address.Address example:
redis://127.0.0.1:9233
- Specified by:
getSentinel
in interfaceRedisSentinelMasterSlave
- Returns:
- Redis Sentinel node
-
-