More deprecation in Discovery.

These functions will be taken over by ServiceRegistry
This commit is contained in:
Spencer Gibb
2016-12-08 09:49:43 -07:00
parent 8d3d07bde6
commit 1e447eb9d1
2 changed files with 8 additions and 4 deletions

View File

@@ -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();
}

View File

@@ -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 {
}