masterreplica package with version 6.@Deprecated public class SentinelTopologyProvider extends Object implements TopologyProvider
| Constructor and Description |
|---|
SentinelTopologyProvider(String masterId,
RedisClient redisClient,
RedisURI sentinelUri)
Deprecated.
Creates a new
SentinelTopologyProvider. |
| Modifier and Type | Method and Description |
|---|---|
List<RedisNodeDescription> |
getNodes()
Deprecated.
Lookup nodes within the topology.
|
protected Mono<List<RedisNodeDescription>> |
getNodes(StatefulRedisSentinelConnection<String,String> connection)
Deprecated.
|
CompletableFuture<List<RedisNodeDescription>> |
getNodesAsync()
Deprecated.
Lookup nodes asynchronously within the topology.
|
public SentinelTopologyProvider(String masterId, RedisClient redisClient, RedisURI sentinelUri)
SentinelTopologyProvider.masterId - must not be emptyredisClient - must not be null.sentinelUri - must not be null.public List<RedisNodeDescription> getNodes()
TopologyProvidergetNodes in interface TopologyProviderRedisNodeDescription instances.public CompletableFuture<List<RedisNodeDescription>> getNodesAsync()
TopologyProvidergetNodesAsync in interface TopologyProviderRedisNodeDescription instances.protected Mono<List<RedisNodeDescription>> getNodes(StatefulRedisSentinelConnection<String,String> connection)
Copyright © 2020 lettuce.io. All rights reserved.