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 Details

    • 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