Class SimpleReactiveDiscoveryClient
java.lang.Object
org.springframework.cloud.client.discovery.simple.reactive.SimpleReactiveDiscoveryClient
- All Implemented Interfaces:
ReactiveDiscoveryClient,org.springframework.core.Ordered
A
ReactiveDiscoveryClient that will use the properties file as a source of
service instances.- Author:
- Tim Ysewyn
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEFields inherited from interface org.springframework.cloud.client.discovery.ReactiveDiscoveryClient
DEFAULT_ORDER -
Constructor Summary
ConstructorsConstructorDescriptionSimpleReactiveDiscoveryClient(SimpleReactiveDiscoveryProperties simpleDiscoveryProperties) -
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.intgetOrder()Default implementation for getting order of discovery clients.reactor.core.publisher.Flux<String>Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.cloud.client.discovery.ReactiveDiscoveryClient
probe
-
Constructor Details
-
SimpleReactiveDiscoveryClient
-
-
Method Details
-
description
Description copied from interface:ReactiveDiscoveryClientA human-readable description of the implementation, used in HealthIndicator.- Specified by:
descriptionin interfaceReactiveDiscoveryClient- Returns:
- The description.
-
getInstances
Description copied from interface:ReactiveDiscoveryClientGets all ServiceInstances associated with a particular serviceId.- Specified by:
getInstancesin interfaceReactiveDiscoveryClient- Parameters:
serviceId- The serviceId to query.- Returns:
- A List of ServiceInstance.
-
getServices
- Specified by:
getServicesin interfaceReactiveDiscoveryClient- Returns:
- All known service IDs.
-
getOrder
public int getOrder()Description copied from interface:ReactiveDiscoveryClientDefault implementation for getting order of discovery clients.- Specified by:
getOrderin interfaceorg.springframework.core.Ordered- Specified by:
getOrderin interfaceReactiveDiscoveryClient- Returns:
- order
-