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, pingAll
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
pingAll, pingAll
public RedissonMasterSlaveNodes(ConnectionManager connectionManager, CommandAsyncExecutor commandExecutor)
public RedisMaster getMaster()
RedisMasterSlave
getMaster
in interface RedisMasterSlave
public RedisMaster getMaster(String address)
RedisMasterSlave
Address example: redis://127.0.0.1:9233
getMaster
in interface RedisMasterSlave
public Collection<RedisSlave> getSlaves()
RedisMasterSlave
getSlaves
in interface RedisMasterSlave
public RedisSlave getSlave(String address)
RedisMasterSlave
Address example: redis://127.0.0.1:9233
getSlave
in interface RedisMasterSlave
Copyright © 2014–2021 Redisson. All rights reserved.