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