Package org.redisson.api.redisnode
Interface RedisClusterNodeAsync
- All Superinterfaces:
RedisNodeAsync
- All Known Subinterfaces:
RedisClusterMaster
,RedisClusterMasterAsync
,RedisClusterNode
,RedisClusterSlave
,RedisClusterSlaveAsync
- All Known Implementing Classes:
RedisNode
Base Redis Cluster node API interface
- Author:
- Nikita Koksharov
-
Method Summary
Modifier and TypeMethodDescriptionclusterAddSlotsAsync
(int... slots) Adds slots to this Redis nodeReturns number of failure reports for Redis node by defined idclusterCountKeysInSlotAsync
(int slot) Counts keys in defined slotclusterDeleteSlotsAsync
(int... slots) Removes slots from this Redis nodeRemoves all slots from this Redis nodeclusterForgetAsync
(String nodeId) Removes Redis node by defined id from ClusterclusterGetKeysInSlotAsync
(int slot, int count) Returns keys in defines slot limited by countReturns id of this Redis nodeReturns cluster information reported by this Redis nodeclusterMeetAsync
(String address) Joins Redis node by the defined address to ClusterclusterReplicateAsync
(String nodeId) Reconfigures this Redis node as replica of Redis node by defined id.clusterSetSlotAsync
(int slot, SetSlotCommand command) Sets slot to this Redis node according to defined commandclusterSetSlotAsync
(int slot, SetSlotCommand command, String nodeId) Sets slot to this Redis node according to defined commandReturn Redis Cluster slots mapped to Redis nodesMethods inherited from interface org.redisson.api.redisnode.RedisNodeAsync
bgRewriteAOFAsync, bgSaveAsync, getConfigAsync, getLastSaveTimeAsync, getMemoryStatisticsAsync, infoAsync, pingAsync, pingAsync, saveAsync, scheduleBgSaveAsync, setConfigAsync, sizeAsync, timeAsync
-
Method Details
-
clusterInfoAsync
Returns cluster information reported by this Redis node- Returns:
- cluster information
-
clusterIdAsync
Returns id of this Redis node- Returns:
- Redis node Id
-
clusterAddSlotsAsync
Adds slots to this Redis node- Parameters:
slots
- slots to add- Returns:
- void
-
clusterReplicateAsync
Reconfigures this Redis node as replica of Redis node by defined id.- Parameters:
nodeId
- Redis node Id- Returns:
- void
-
clusterForgetAsync
Removes Redis node by defined id from Cluster- Parameters:
nodeId
-- Returns:
- void
-
clusterDeleteSlotsAsync
Removes slots from this Redis node- Parameters:
slots
- slots to remove- Returns:
- void
-
clusterCountKeysInSlotAsync
Counts keys in defined slot- Parameters:
slot
- slot- Returns:
- keys amount
-
clusterGetKeysInSlotAsync
Returns keys in defines slot limited by count- Parameters:
slot
- slotcount
- limits keys amount- Returns:
- keys
-
clusterSetSlotAsync
Sets slot to this Redis node according to defined command- Parameters:
slot
- slotcommand
- slot command- Returns:
- void
-
clusterSetSlotAsync
Sets slot to this Redis node according to defined command- Parameters:
slot
- slotcommand
- slot commandnodeId
- Redis node id- Returns:
- void
-
clusterMeetAsync
Joins Redis node by the defined address to ClusterAddress example:
redis://127.0.0.1:9233
- Parameters:
address
- Redis node address- Returns:
- void
-
clusterCountFailureReportsAsync
Returns number of failure reports for Redis node by defined id- Parameters:
nodeId
- Redis node id- Returns:
- amount of failure reports
-
clusterFlushSlotsAsync
Removes all slots from this Redis node- Returns:
- void
-
clusterSlotsAsync
RFuture<Map<ClusterSlotRange,Set<String>>> clusterSlotsAsync()Return Redis Cluster slots mapped to Redis nodes- Returns:
- slots mapping
-