public abstract class DiscoveryServerInstanceList extends java.lang.Object implements ServiceInstanceList, ApplicationEventListener<ServerStartupEvent>, Ordered
ServiceInstanceList implementation for Discovery servers like Eureka and Consul.HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description | 
|---|
| DiscoveryServerInstanceList(DiscoveryClientConfiguration configuration,
                           ApplicationConfiguration.InstanceConfiguration instanceConfiguration) | 
| Modifier and Type | Method and Description | 
|---|---|
| java.util.List<ServiceInstance> | getInstances()Returns the current list of services. | 
| int | getOrder() | 
| void | onApplicationEvent(ServerStartupEvent event)Handle an application event. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContextPath, getIDsupportspublic DiscoveryServerInstanceList(DiscoveryClientConfiguration configuration, ApplicationConfiguration.InstanceConfiguration instanceConfiguration)
configuration - The discovery client configurationinstanceConfiguration - The instance configurationpublic int getOrder()
public java.util.List<ServiceInstance> getInstances()
ServiceInstanceListgetInstances in interface ServiceInstanceListpublic void onApplicationEvent(ServerStartupEvent event)
ApplicationEventListeneronApplicationEvent in interface ApplicationEventListener<ServerStartupEvent>event - the event to respond to