Package org.redisson.api.redisnode
Interface RedisClusterNodeAsync
-
- All Superinterfaces:
RedisNodeAsync
- All Known Subinterfaces:
RedisClusterMaster
,RedisClusterMasterAsync
,RedisClusterNode
,RedisClusterSlave
,RedisClusterSlaveAsync
- All Known Implementing Classes:
RedisNode
public interface RedisClusterNodeAsync extends RedisNodeAsync
Base Redis Cluster node API interface- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RFuture<Void>
clusterAddSlotsAsync(int... slots)
Adds slots to this Redis nodeRFuture<Long>
clusterCountFailureReportsAsync(String nodeId)
Returns number of failure reports for Redis node by defined idRFuture<Long>
clusterCountKeysInSlotAsync(int slot)
Counts keys in defined slotRFuture<Void>
clusterDeleteSlotsAsync(int... slots)
Removes slots from this Redis nodeRFuture<Void>
clusterFlushSlotsAsync()
Removes all slots from this Redis nodeRFuture<Void>
clusterForgetAsync(String nodeId)
Removes Redis node by defined id from ClusterRFuture<List<String>>
clusterGetKeysInSlotAsync(int slot, int count)
Returns keys in defines slot limited by countRFuture<String>
clusterIdAsync()
Returns id of this Redis nodeRFuture<Map<String,String>>
clusterInfoAsync()
Returns cluster information reported by this Redis nodeRFuture<Void>
clusterMeetAsync(String address)
Joins Redis node by the defined address to ClusterRFuture<Void>
clusterReplicateAsync(String nodeId)
Reconfigures this Redis node as replica of Redis node by defined id.RFuture<Void>
clusterSetSlotAsync(int slot, SetSlotCommand command)
Sets slot to this Redis node according to defined commandRFuture<Void>
clusterSetSlotAsync(int slot, SetSlotCommand command, String nodeId)
Sets slot to this Redis node according to defined commandRFuture<Map<ClusterSlotRange,Set<String>>>
clusterSlotsAsync()
Return Redis Cluster slots mapped to Redis nodes-
Methods inherited from interface org.redisson.api.redisnode.RedisNodeAsync
getConfigAsync, getMemoryStatisticsAsync, infoAsync, pingAsync, pingAsync, setConfigAsync, timeAsync
-
-
-
-
Method Detail
-
clusterInfoAsync
RFuture<Map<String,String>> clusterInfoAsync()
Returns cluster information reported by this Redis node- Returns:
- cluster information
-
clusterIdAsync
RFuture<String> clusterIdAsync()
Returns id of this Redis node- Returns:
- Redis node Id
-
clusterAddSlotsAsync
RFuture<Void> clusterAddSlotsAsync(int... slots)
Adds slots to this Redis node- Parameters:
slots
- slots to add- Returns:
- void
-
clusterReplicateAsync
RFuture<Void> clusterReplicateAsync(String nodeId)
Reconfigures this Redis node as replica of Redis node by defined id.- Parameters:
nodeId
- Redis node Id- Returns:
- void
-
clusterForgetAsync
RFuture<Void> clusterForgetAsync(String nodeId)
Removes Redis node by defined id from Cluster- Parameters:
nodeId
-- Returns:
- void
-
clusterDeleteSlotsAsync
RFuture<Void> clusterDeleteSlotsAsync(int... slots)
Removes slots from this Redis node- Parameters:
slots
- slots to remove- Returns:
- void
-
clusterCountKeysInSlotAsync
RFuture<Long> clusterCountKeysInSlotAsync(int slot)
Counts keys in defined slot- Parameters:
slot
- slot- Returns:
- keys amount
-
clusterGetKeysInSlotAsync
RFuture<List<String>> clusterGetKeysInSlotAsync(int slot, int count)
Returns keys in defines slot limited by count- Parameters:
slot
- slotcount
- limits keys amount- Returns:
- keys
-
clusterSetSlotAsync
RFuture<Void> clusterSetSlotAsync(int slot, SetSlotCommand command)
Sets slot to this Redis node according to defined command- Parameters:
slot
- slotcommand
- slot command- Returns:
- void
-
clusterSetSlotAsync
RFuture<Void> clusterSetSlotAsync(int slot, SetSlotCommand command, String nodeId)
Sets slot to this Redis node according to defined command- Parameters:
slot
- slotcommand
- slot commandnodeId
- Redis node id- Returns:
- void
-
clusterMeetAsync
RFuture<Void> clusterMeetAsync(String address)
Joins Redis node by the defined address to ClusterAddress example:
redis://127.0.0.1:9233
- Parameters:
address
- Redis node address- Returns:
- void
-
clusterCountFailureReportsAsync
RFuture<Long> clusterCountFailureReportsAsync(String nodeId)
Returns number of failure reports for Redis node by defined id- Parameters:
nodeId
- Redis node id- Returns:
- amount of failure reports
-
clusterFlushSlotsAsync
RFuture<Void> 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
-
-