public interface ClusterTopologyRefresh
Partitions
.Modifier and Type | Method and Description |
---|---|
static ClusterTopologyRefresh |
create(NodeConnectionFactory nodeConnectionFactory,
ClientResources clientResources)
Create a new
ClusterTopologyRefresh instance. |
CompletionStage<Map<RedisURI,Partitions>> |
loadViews(Iterable<RedisURI> seed,
Duration connectTimeout,
boolean discovery)
|
static ClusterTopologyRefresh create(NodeConnectionFactory nodeConnectionFactory, ClientResources clientResources)
ClusterTopologyRefresh
instance.nodeConnectionFactory
- the connection factory to open connections to specific cluster nodesclientResources
- shared client resourcesClusterTopologyRefresh
instance.CompletionStage<Map<RedisURI,Partitions>> loadViews(Iterable<RedisURI> seed, Duration connectTimeout, boolean discovery)
RedisURI
s and return the view per RedisURI
. Partitions contain
an ordered list of RedisClusterNode
s. The sort key is latency. Nodes with lower latency come first.seed
- collection of RedisURI
sconnectTimeout
- connect timeoutdiscovery
- true
to discover additional nodesRedisURI
and Partitions
Copyright © 2023 lettuce.io. All rights reserved.