public interface RedisClusterNodeAsync extends RedisNodeAsync
Modifier and Type | Method and Description |
---|---|
RFuture<Void> |
clusterAddSlotsAsync(int... slots)
Adds slots to this Redis node
|
RFuture<Long> |
clusterCountFailureReportsAsync(String nodeId)
Returns number of failure reports for Redis node by defined id
|
RFuture<Long> |
clusterCountKeysInSlotAsync(int slot)
Counts keys in defined slot
|
RFuture<Void> |
clusterDeleteSlotsAsync(int... slots)
Removes slots from this Redis node
|
RFuture<Void> |
clusterFlushSlotsAsync()
Removes all slots from this Redis node
|
RFuture<Void> |
clusterForgetAsync(String nodeId)
Removes Redis node by defined id from Cluster
|
RFuture<List<String>> |
clusterGetKeysInSlotAsync(int slot,
int count)
Returns keys in defines slot limited by count
|
RFuture<String> |
clusterIdAsync()
Returns id of this Redis node
|
RFuture<Map<String,String>> |
clusterInfoAsync()
Returns cluster information reported by this Redis node
|
RFuture<Void> |
clusterMeetAsync(String address)
Joins Redis node by the defined address to Cluster
Address example:
redis://127.0.0.1:9233 |
RFuture<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 command
|
RFuture<Void> |
clusterSetSlotAsync(int slot,
SetSlotCommand command,
String nodeId)
Sets slot to this Redis node according to defined command
|
RFuture<Map<ClusterSlotRange,Set<String>>> |
clusterSlotsAsync()
Return Redis Cluster slots mapped to Redis nodes
|
getConfigAsync, infoAsync, pingAsync, pingAsync, setConfigAsync, timeAsync
RFuture<Map<String,String>> clusterInfoAsync()
RFuture<String> clusterIdAsync()
RFuture<Void> clusterAddSlotsAsync(int... slots)
slots
- slots to addRFuture<Void> clusterReplicateAsync(String nodeId)
nodeId
- Redis node IdRFuture<Void> clusterForgetAsync(String nodeId)
nodeId
- RFuture<Void> clusterDeleteSlotsAsync(int... slots)
slots
- slots to removeRFuture<Long> clusterCountKeysInSlotAsync(int slot)
slot
- slotRFuture<List<String>> clusterGetKeysInSlotAsync(int slot, int count)
slot
- slotcount
- limits keys amountRFuture<Void> clusterSetSlotAsync(int slot, SetSlotCommand command)
slot
- slotcommand
- slot commandRFuture<Void> clusterSetSlotAsync(int slot, SetSlotCommand command, String nodeId)
slot
- slotcommand
- slot commandnodeId
- Redis node idRFuture<Void> clusterMeetAsync(String address)
Address example: redis://127.0.0.1:9233
address
- Redis node addressRFuture<Long> clusterCountFailureReportsAsync(String nodeId)
nodeId
- Redis node idRFuture<Void> clusterFlushSlotsAsync()
RFuture<Map<ClusterSlotRange,Set<String>>> clusterSlotsAsync()
Copyright © 2014–2020 Redisson. All rights reserved.