public class ReactiveCompositeDiscoveryClient extends Object implements ReactiveDiscoveryClient
ReactiveDiscoveryClient
that is composed of other discovery clients and
delegates calls to each of them in order.DEFAULT_ORDER
Constructor and Description |
---|
ReactiveCompositeDiscoveryClient(List<ReactiveDiscoveryClient> discoveryClients) |
Modifier and Type | Method and Description |
---|---|
String |
description()
A human-readable description of the implementation, used in HealthIndicator.
|
List<ReactiveDiscoveryClient> |
getDiscoveryClients() |
reactor.core.publisher.Flux<ServiceInstance> |
getInstances(String serviceId)
Gets all ServiceInstances associated with a particular serviceId.
|
reactor.core.publisher.Flux<String> |
getServices() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOrder, probe
public ReactiveCompositeDiscoveryClient(List<ReactiveDiscoveryClient> discoveryClients)
public String description()
ReactiveDiscoveryClient
description
in interface ReactiveDiscoveryClient
public reactor.core.publisher.Flux<ServiceInstance> getInstances(String serviceId)
ReactiveDiscoveryClient
getInstances
in interface ReactiveDiscoveryClient
serviceId
- The serviceId to query.public reactor.core.publisher.Flux<String> getServices()
getServices
in interface ReactiveDiscoveryClient
public List<ReactiveDiscoveryClient> getDiscoveryClients()
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.