public class SentinelTopologyProvider extends Object implements TopologyProvider
Constructor and Description |
---|
SentinelTopologyProvider(String masterId,
RedisClient redisClient,
RedisURI sentinelUri)
Creates a new
SentinelTopologyProvider . |
Modifier and Type | Method and Description |
---|---|
List<RedisNodeDescription> |
getNodes()
Lookup nodes within the topology.
|
protected reactor.core.publisher.Mono<List<RedisNodeDescription>> |
getNodes(StatefulRedisSentinelConnection<String,String> connection) |
CompletableFuture<List<RedisNodeDescription>> |
getNodesAsync()
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()
TopologyProvider
getNodes
in interface TopologyProvider
RedisNodeDescription
instancespublic CompletableFuture<List<RedisNodeDescription>> getNodesAsync()
TopologyProvider
getNodesAsync
in interface TopologyProvider
RedisNodeDescription
instancesprotected reactor.core.publisher.Mono<List<RedisNodeDescription>> getNodes(StatefulRedisSentinelConnection<String,String> connection)
Copyright © 2018 lettuce.io. All rights reserved.