Class ConsulReactiveDiscoveryClient
java.lang.Object
org.springframework.cloud.consul.discovery.reactive.ConsulReactiveDiscoveryClient
- All Implemented Interfaces:
org.springframework.cloud.client.discovery.ReactiveDiscoveryClient,org.springframework.core.Ordered
public class ConsulReactiveDiscoveryClient
extends Object
implements org.springframework.cloud.client.discovery.ReactiveDiscoveryClient
Consul version of
ReactiveDiscoveryClient.- Author:
- Tim Ysewyn, Chris Bono
-
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, LOG -
Constructor Summary
ConstructorsConstructorDescriptionConsulReactiveDiscoveryClient(com.ecwid.consul.v1.ConsulClient client, ConsulDiscoveryProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Flux<org.springframework.cloud.client.ServiceInstance>getInstances(String serviceId) intgetOrder()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, reactiveProbe
-
Constructor Details
-
ConsulReactiveDiscoveryClient
public ConsulReactiveDiscoveryClient(com.ecwid.consul.v1.ConsulClient client, ConsulDiscoveryProperties properties)
-
-
Method Details
-
description
- Specified by:
descriptionin interfaceorg.springframework.cloud.client.discovery.ReactiveDiscoveryClient
-
getInstances
public reactor.core.publisher.Flux<org.springframework.cloud.client.ServiceInstance> getInstances(String serviceId) - Specified by:
getInstancesin interfaceorg.springframework.cloud.client.discovery.ReactiveDiscoveryClient
-
getServices
- Specified by:
getServicesin interfaceorg.springframework.cloud.client.discovery.ReactiveDiscoveryClient
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered- Specified by:
getOrderin interfaceorg.springframework.cloud.client.discovery.ReactiveDiscoveryClient
-