Class ReactiveCompositeDiscoveryClient
java.lang.Object
org.springframework.cloud.client.discovery.composite.reactive.ReactiveCompositeDiscoveryClient
- All Implemented Interfaces:
ReactiveDiscoveryClient
,org.springframework.core.Ordered
A
ReactiveDiscoveryClient
that is composed of other discovery clients and
delegates calls to each of them in order.- Author:
- Tim Ysewyn
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Fields inherited from interface org.springframework.cloud.client.discovery.ReactiveDiscoveryClient
DEFAULT_ORDER, LOG
-
Constructor Summary
ConstructorDescriptionReactiveCompositeDiscoveryClient
(List<ReactiveDiscoveryClient> discoveryClients) -
Method Summary
Modifier and TypeMethodDescriptionA human-readable description of the implementation, used in HealthIndicator.reactor.core.publisher.Flux<ServiceInstance>
getInstances
(String serviceId) Gets all ServiceInstances associated with a particular serviceId.reactor.core.publisher.Flux<String>
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.cloud.client.discovery.ReactiveDiscoveryClient
getOrder, probe, reactiveProbe
-
Constructor Details
-
ReactiveCompositeDiscoveryClient
-
-
Method Details
-
description
Description copied from interface:ReactiveDiscoveryClient
A human-readable description of the implementation, used in HealthIndicator.- Specified by:
description
in interfaceReactiveDiscoveryClient
- Returns:
- The description.
-
getInstances
Description copied from interface:ReactiveDiscoveryClient
Gets all ServiceInstances associated with a particular serviceId.- Specified by:
getInstances
in interfaceReactiveDiscoveryClient
- Parameters:
serviceId
- The serviceId to query.- Returns:
- A List of ServiceInstance.
-
getServices
- Specified by:
getServices
in interfaceReactiveDiscoveryClient
- Returns:
- All known service IDs.
-
getDiscoveryClients
-