Class EurekaDiscoveryClient

java.lang.Object
org.springframework.cloud.netflix.eureka.EurekaDiscoveryClient
All Implemented Interfaces:
org.springframework.cloud.client.discovery.DiscoveryClient, org.springframework.core.Ordered

public class EurekaDiscoveryClient extends Object implements org.springframework.cloud.client.discovery.DiscoveryClient
A DiscoveryClient implementation for Eureka.
Author:
Spencer Gibb, Tim Ysewyn
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Client description String.

    Fields inherited from interface org.springframework.cloud.client.discovery.DiscoveryClient

    DEFAULT_ORDER

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
    EurekaDiscoveryClient(com.netflix.discovery.EurekaClient eurekaClient, com.netflix.discovery.EurekaClientConfig clientConfig)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    List<org.springframework.cloud.client.ServiceInstance>
    getInstances(String serviceId)
     
    int
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.cloud.client.discovery.DiscoveryClient

    probe
  • Field Details

  • Constructor Details

    • EurekaDiscoveryClient

      public EurekaDiscoveryClient(com.netflix.discovery.EurekaClient eurekaClient, com.netflix.discovery.EurekaClientConfig clientConfig)
  • 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