Package org.redisson.api.redisnode
Interface RedisSentinelAsync
- All Superinterfaces:
RedisNodeAsync
- All Known Subinterfaces:
RedisSentinel
- All Known Implementing Classes:
SentinelRedisNode
Redis Sentinel node API interface
- Author:
- Nikita Koksharov
-
Method Summary
Modifier and TypeMethodDescriptionfailoverAsync
(String masterName) Starts failover process for defined Redis mastergetMasterAddrAsync
(String masterName) Returns network address of defined Redis master.getMasterAsync
(String masterName) Returns map containing info regarding defined Redis master.Returns list of map containing info regarding Redis Master server monitored by current Redis Sentinel server.getSentinelsAsync
(String masterName) Returns list of map containing info regarding Redis Sentinel server monitoring defined master.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
bgRewriteAOFAsync, bgSaveAsync, getConfigAsync, getLastSaveTimeAsync, getMemoryStatisticsAsync, infoAsync, pingAsync, pingAsync, saveAsync, scheduleBgSaveAsync, setConfigAsync, sizeAsync, timeAsync
-
Method Details
-
getMasterAddrAsync
Returns network address of defined Redis master.- Parameters:
masterName
- - name of master- Returns:
- network address
-
getSentinelsAsync
Returns list of map containing info regarding Redis Sentinel server monitoring defined master.- Parameters:
masterName
- - name of master- Returns:
- list of Redis Sentinels
-
getMastersAsync
Returns list of map containing info regarding Redis Master server monitored by current Redis Sentinel server.- Returns:
- list of Redis Masters
-
getSlavesAsync
Returns list of map containing info regarding Redis Slave server of defined master.- Parameters:
masterName
- - name of master- Returns:
- list of Redis Slaves
-
getMasterAsync
Returns map containing info regarding defined Redis master.- Parameters:
masterName
- - name of master- Returns:
- map containing info
-
failoverAsync
Starts failover process for defined Redis master- Parameters:
masterName
- - name of master
-