public class EurekaDiscoveryClient extends Object implements org.springframework.cloud.client.discovery.DiscoveryClient
DiscoveryClient
implementation for Eureka.Modifier and Type | Class and Description |
---|---|
static class |
EurekaDiscoveryClient.EurekaServiceInstance
An Eureka-specific
ServiceInstance implementation. |
Modifier and Type | Field and Description |
---|---|
static String |
DESCRIPTION
Client description
String . |
Constructor and Description |
---|
EurekaDiscoveryClient(com.netflix.discovery.EurekaClient eurekaClient,
com.netflix.discovery.EurekaClientConfig clientConfig) |
EurekaDiscoveryClient(com.netflix.appinfo.EurekaInstanceConfig config,
com.netflix.discovery.EurekaClient eurekaClient)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
description() |
List<org.springframework.cloud.client.ServiceInstance> |
getInstances(String serviceId) |
int |
getOrder() |
List<String> |
getServices() |
public static final String DESCRIPTION
String
.@Deprecated public EurekaDiscoveryClient(com.netflix.appinfo.EurekaInstanceConfig config, com.netflix.discovery.EurekaClient eurekaClient)
public EurekaDiscoveryClient(com.netflix.discovery.EurekaClient eurekaClient, com.netflix.discovery.EurekaClientConfig clientConfig)
public String description()
description
in interface org.springframework.cloud.client.discovery.DiscoveryClient
public List<org.springframework.cloud.client.ServiceInstance> getInstances(String serviceId)
getInstances
in interface org.springframework.cloud.client.discovery.DiscoveryClient
public List<String> getServices()
getServices
in interface org.springframework.cloud.client.discovery.DiscoveryClient
public int getOrder()
getOrder
in interface org.springframework.cloud.client.discovery.DiscoveryClient
getOrder
in interface org.springframework.core.Ordered
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.