public abstract class DiscoveryServerInstanceList extends 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 |
|---|---|
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, waitgetIDsupportspublic DiscoveryServerInstanceList(DiscoveryClientConfiguration configuration, ApplicationConfiguration.InstanceConfiguration instanceConfiguration)
configuration - The discovery client configurationinstanceConfiguration - The instance configurationpublic int getOrder()
public List<ServiceInstance> getInstances()
ServiceInstanceListgetInstances in interface ServiceInstanceListpublic void onApplicationEvent(ServerStartupEvent event)
ApplicationEventListeneronApplicationEvent in interface ApplicationEventListener<ServerStartupEvent>event - the event to respond to