Interface RedisSentinelAsync

All Superinterfaces:
RedisNodeAsync
All Known Subinterfaces:
RedisSentinel
All Known Implementing Classes:
SentinelRedisNode

public interface RedisSentinelAsync extends RedisNodeAsync
Redis Sentinel node API interface
Author:
Nikita Koksharov
  • Method Details

    • getMasterAddrAsync

      RFuture<RedisURI> getMasterAddrAsync(String masterName)
      Returns network address of defined Redis master.
      Parameters:
      masterName - - name of master
      Returns:
      network address
    • getSentinelsAsync

      RFuture<List<Map<String,String>>> getSentinelsAsync(String masterName)
      Returns list of map containing info regarding Redis Sentinel server monitoring defined master.
      Parameters:
      masterName - - name of master
      Returns:
      list of Redis Sentinels
    • getMastersAsync

      RFuture<List<Map<String,String>>> getMastersAsync()
      Returns list of map containing info regarding Redis Master server monitored by current Redis Sentinel server.
      Returns:
      list of Redis Masters
    • getSlavesAsync

      RFuture<List<Map<String,String>>> getSlavesAsync(String masterName)
      Returns list of map containing info regarding Redis Slave server of defined master.
      Parameters:
      masterName - - name of master
      Returns:
      list of Redis Slaves
    • getMasterAsync

      RFuture<Map<String,String>> getMasterAsync(String masterName)
      Returns map containing info regarding defined Redis master.
      Parameters:
      masterName - - name of master
      Returns:
      map containing info
    • failoverAsync

      RFuture<Void> failoverAsync(String masterName)
      Starts failover process for defined Redis master
      Parameters:
      masterName - - name of master