Class ZookeeperReactiveDiscoveryClient
java.lang.Object
org.springframework.cloud.zookeeper.discovery.reactive.ZookeeperReactiveDiscoveryClient
- All Implemented Interfaces:
org.springframework.cloud.client.discovery.ReactiveDiscoveryClient,org.springframework.core.Ordered
public class ZookeeperReactiveDiscoveryClient
extends Object
implements org.springframework.cloud.client.discovery.ReactiveDiscoveryClient
Zookeeper version of
ReactiveDiscoveryClient. Capable of resolving aliases from
ZookeeperDependencies to service names in Zookeeper.- Since:
- 2.2.0
- 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, LOG -
Constructor Summary
ConstructorsConstructorDescriptionZookeeperReactiveDiscoveryClient(org.apache.curator.x.discovery.ServiceDiscovery<ZookeeperInstance> serviceDiscovery, ZookeeperDependencies zookeeperDependencies, ZookeeperDiscoveryProperties zookeeperDiscoveryProperties) -
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
-
ZookeeperReactiveDiscoveryClient
public ZookeeperReactiveDiscoveryClient(org.apache.curator.x.discovery.ServiceDiscovery<ZookeeperInstance> serviceDiscovery, ZookeeperDependencies zookeeperDependencies, ZookeeperDiscoveryProperties zookeeperDiscoveryProperties)
-
-
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
-