Package org.redisson.api.redisnode
Interface RedisCluster
- All Superinterfaces:
BaseRedisNodes
- All Known Implementing Classes:
RedissonClusterNodes
Redis Cluster nodes API interface
- Author:
- Nikita Koksharov
-
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 interface org.redisson.api.redisnode.BaseRedisNodes
pingAll, pingAll
-
Method Details
-
getMasters
Collection<RedisClusterMaster> getMasters()Returns collection of Redis Master nodes belongs to this Redis Cluster.- Returns:
- Redis Master nodes
-
getMaster
Returns Redis Master node by defined address.Address example:
redis://127.0.0.1:9233
- Returns:
- Redis Master node
-
getSlaves
Collection<RedisClusterSlave> getSlaves()Returns collection of Redis Slave nodes belongs to this Redis Cluster.- Returns:
- Redis Slave nodes
-
getSlave
Returns Redis Slave node by defined address.Address example:
redis://127.0.0.1:9233
- Returns:
- Redis Slave node
-