public class RedissonClusterNodes extends RedissonBaseNodes implements RedisCluster
Constructor and Description |
---|
RedissonClusterNodes(ConnectionManager connectionManager) |
Modifier and Type | Method and 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.
|
getNode, getNodes, getNodes, pingAll, pingAll
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
pingAll, pingAll
public RedissonClusterNodes(ConnectionManager connectionManager)
public Collection<RedisClusterMaster> getMasters()
RedisCluster
getMasters
in interface RedisCluster
public RedisClusterMaster getMaster(String address)
RedisCluster
Address example: redis://127.0.0.1:9233
getMaster
in interface RedisCluster
public Collection<RedisClusterSlave> getSlaves()
RedisCluster
getSlaves
in interface RedisCluster
public RedisClusterSlave getSlave(String address)
RedisCluster
Address example: redis://127.0.0.1:9233
getSlave
in interface RedisCluster
Copyright © 2014–2020 Redisson. All rights reserved.