Package org.redisson.api.redisnode
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RFuture<Void>
failoverAsync(String masterName)
Starts failover process for defined Redis masterRFuture<InetSocketAddress>
getMasterAddrAsync(String masterName)
Returns network address of defined Redis master.RFuture<Map<String,String>>
getMasterAsync(String masterName)
Returns map containing info regarding defined Redis master.RFuture<List<Map<String,String>>>
getMastersAsync()
Returns list of map containing info regarding Redis Master server monitored by current Redis Sentinel server.RFuture<List<Map<String,String>>>
getSentinelsAsync(String masterName)
Returns list of map containing info regarding Redis Sentinel server monitoring defined master.RFuture<List<Map<String,String>>>
getSlavesAsync(String masterName)
Returns list of map containing info regarding Redis Slave server of defined master.-
Methods inherited from interface org.redisson.api.redisnode.RedisNodeAsync
getConfigAsync, getMemoryStatisticsAsync, infoAsync, pingAsync, pingAsync, setConfigAsync, timeAsync
-
-
-
-
Method Detail
-
getMasterAddrAsync
RFuture<InetSocketAddress> 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
-
-