Class ZookeeperDiscoveryClient

java.lang.Object
org.springframework.cloud.zookeeper.discovery.ZookeeperDiscoveryClient
All Implemented Interfaces:
org.springframework.cloud.client.discovery.DiscoveryClient, org.springframework.core.Ordered

public class ZookeeperDiscoveryClient extends Object implements org.springframework.cloud.client.discovery.DiscoveryClient
Zookeeper version of DiscoveryClient. Capable of resolving aliases from ZookeeperDependencies to service names in Zookeeper.
Since:
1.0.0
Author:
Spencer Gibb, Marcin Grzejszczak, Olga Maciaszek-Sharma
  • Constructor Details

  • Method Details

    • description

      public String description()
      Specified by:
      description in interface org.springframework.cloud.client.discovery.DiscoveryClient
    • getInstances

      public List<org.springframework.cloud.client.ServiceInstance> getInstances(String serviceId)
      Specified by:
      getInstances in interface org.springframework.cloud.client.discovery.DiscoveryClient
    • getServices

      public List<String> getServices()
      Specified by:
      getServices in interface org.springframework.cloud.client.discovery.DiscoveryClient
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.cloud.client.discovery.DiscoveryClient
      Specified by:
      getOrder in interface org.springframework.core.Ordered