More deprecation in Discovery.
These functions will be taken over by ServiceRegistry
This commit is contained in:
@@ -31,23 +31,25 @@ public interface DiscoveryClient {
|
||||
* A human readable description of the implementation, used in HealthIndicator
|
||||
* @return the description
|
||||
*/
|
||||
public String description();
|
||||
String description();
|
||||
|
||||
/**
|
||||
* @deprecated use the {@link org.springframework.cloud.client.serviceregistry.Registration} bean instead
|
||||
*
|
||||
* @return ServiceInstance with information used to register the local service
|
||||
*/
|
||||
public ServiceInstance getLocalServiceInstance();
|
||||
ServiceInstance getLocalServiceInstance();
|
||||
|
||||
/**
|
||||
* Get all ServiceInstances associated with a particular serviceId
|
||||
* @param serviceId the serviceId to query
|
||||
* @return a List of ServiceInstance
|
||||
*/
|
||||
public List<ServiceInstance> getInstances(String serviceId);
|
||||
List<ServiceInstance> getInstances(String serviceId);
|
||||
|
||||
/**
|
||||
* @return all known service ids
|
||||
*/
|
||||
public List<String> getServices();
|
||||
List<String> getServices();
|
||||
|
||||
}
|
||||
|
||||
@@ -21,6 +21,8 @@ import org.springframework.core.Ordered;
|
||||
|
||||
/**
|
||||
* @author Spencer Gibb
|
||||
* @deprecated use {@link org.springframework.cloud.client.serviceregistry.AutoServiceRegistration} instead. This class will be removed in the next release train.
|
||||
*/
|
||||
@Deprecated
|
||||
public interface DiscoveryLifecycle extends SmartLifecycle, Ordered {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user