Package org.redisson.api.redisnode
Interface RedisMasterSlave
-
- All Superinterfaces:
BaseRedisNodes
- All Known Subinterfaces:
RedisSentinelMasterSlave
- All Known Implementing Classes:
RedissonMasterSlaveNodes
,RedissonSentinelMasterSlaveNodes
public interface RedisMasterSlave extends BaseRedisNodes
Redis Master Slave nodes API interface- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RedisMaster
getMaster()
Returns Redis Master node belong to this Redis setup.RedisMaster
getMaster(String address)
Returns Redis Master node by defined address.RedisSlave
getSlave(String address)
Returns Redis Slave node by defined address.Collection<RedisSlave>
getSlaves()
Returns collection of Redis Slave nodes belongs to this Redis setup.-
Methods inherited from interface org.redisson.api.redisnode.BaseRedisNodes
pingAll, pingAll
-
-
-
-
Method Detail
-
getMaster
RedisMaster getMaster()
Returns Redis Master node belong to this Redis setup.- Returns:
- Redis Master nodes
-
getMaster
RedisMaster getMaster(String address)
Returns Redis Master node by defined address.Address example:
redis://127.0.0.1:9233
- Returns:
- Redis Master node
-
getSlaves
Collection<RedisSlave> getSlaves()
Returns collection of Redis Slave nodes belongs to this Redis setup.- Returns:
- Redis Slave nodes
-
getSlave
RedisSlave getSlave(String address)
Returns Redis Slave node by defined address.Address example:
redis://127.0.0.1:9233
- Returns:
- Redis Slave node
-
-