public class RedissonMasterSlaveNodes extends RedissonBaseNodes implements RedisMasterSlave
| Constructor and Description |
|---|
RedissonMasterSlaveNodes(ConnectionManager connectionManager,
CommandAsyncExecutor commandExecutor) |
| Modifier and Type | Method and 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.
|
getNode, getNodes, getNodes, pingAll, pingAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpingAll, pingAllpublic RedissonMasterSlaveNodes(ConnectionManager connectionManager, CommandAsyncExecutor commandExecutor)
public RedisMaster getMaster()
RedisMasterSlavegetMaster in interface RedisMasterSlavepublic RedisMaster getMaster(String address)
RedisMasterSlave
Address example: redis://127.0.0.1:9233
getMaster in interface RedisMasterSlavepublic Collection<RedisSlave> getSlaves()
RedisMasterSlavegetSlaves in interface RedisMasterSlavepublic RedisSlave getSlave(String address)
RedisMasterSlave
Address example: redis://127.0.0.1:9233
getSlave in interface RedisMasterSlaveCopyright © 2014–2021 Redisson. All rights reserved.