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