Package org.redisson.redisnode
Class RedissonSentinelMasterSlaveNodes
- java.lang.Object
-
- 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 RedisSentinelgetSentinel(String address)Returns Redis Sentinel node by defined address.Collection<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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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 Collection<RedisSentinel> getSentinels()
Description copied from interface:RedisSentinelMasterSlaveReturns collection of Redis Sentinel nodes belongs to this Redis setup.- Specified by:
getSentinelsin interfaceRedisSentinelMasterSlave- Returns:
- Redis Sentinel nodes
-
getSentinel
public RedisSentinel getSentinel(String address)
Description copied from interface:RedisSentinelMasterSlaveReturns Redis Sentinel node by defined address.Address example:
redis://127.0.0.1:9233- Specified by:
getSentinelin interfaceRedisSentinelMasterSlave- Returns:
- Redis Sentinel node
-
-