public class SimpleReactiveDiscoveryClient extends Object implements ReactiveDiscoveryClient
ReactiveDiscoveryClient
that will use the properties file as a source of
service instances.DEFAULT_ORDER
Constructor and Description |
---|
SimpleReactiveDiscoveryClient(SimpleReactiveDiscoveryProperties simpleDiscoveryProperties) |
Modifier and Type | Method and Description |
---|---|
String |
description()
A 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.
|
int |
getOrder()
Default implementation for getting order of discovery clients.
|
reactor.core.publisher.Flux<String> |
getServices() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
probe
public SimpleReactiveDiscoveryClient(SimpleReactiveDiscoveryProperties simpleDiscoveryProperties)
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 int getOrder()
ReactiveDiscoveryClient
getOrder
in interface ReactiveDiscoveryClient
getOrder
in interface org.springframework.core.Ordered
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.