Package org.redisson.redisnode
Class RedissonClusterNodes
java.lang.Object
org.redisson.redisnode.RedissonBaseNodes
org.redisson.redisnode.RedissonClusterNodes
- All Implemented Interfaces:
BaseRedisNodes
,RedisCluster
- Author:
- Nikita Koksharov
-
Constructor Summary
ConstructorDescriptionRedissonClusterNodes
(ConnectionManager connectionManager, CommandAsyncExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionReturns Redis Master node by defined address.Returns collection of Redis Master nodes belongs to this Redis Cluster.Returns Redis Slave node by defined address.Returns collection of Redis Slave nodes belongs to this Redis Cluster.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
-
Constructor Details
-
RedissonClusterNodes
public RedissonClusterNodes(ConnectionManager connectionManager, CommandAsyncExecutor commandExecutor)
-
-
Method Details
-
getMasters
Description copied from interface:RedisCluster
Returns collection of Redis Master nodes belongs to this Redis Cluster.- Specified by:
getMasters
in interfaceRedisCluster
- Returns:
- Redis Master nodes
-
getMaster
Description copied from interface:RedisCluster
Returns Redis Master node by defined address.Address example:
redis://127.0.0.1:9233
- Specified by:
getMaster
in interfaceRedisCluster
- Returns:
- Redis Master node
-
getSlaves
Description copied from interface:RedisCluster
Returns collection of Redis Slave nodes belongs to this Redis Cluster.- Specified by:
getSlaves
in interfaceRedisCluster
- Returns:
- Redis Slave nodes
-
getSlave
Description copied from interface:RedisCluster
Returns Redis Slave node by defined address.Address example:
redis://127.0.0.1:9233
- Specified by:
getSlave
in interfaceRedisCluster
- Returns:
- Redis Slave node
-