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, wait
getID
supports
public DiscoveryServerInstanceList(DiscoveryClientConfiguration configuration, ApplicationConfiguration.InstanceConfiguration instanceConfiguration)
configuration
- The discovery client configurationinstanceConfiguration
- The instance configurationpublic int getOrder()
public List<ServiceInstance> getInstances()
ServiceInstanceList
getInstances
in interface ServiceInstanceList
public void onApplicationEvent(ServerStartupEvent event)
ApplicationEventListener
onApplicationEvent
in interface ApplicationEventListener<ServerStartupEvent>
event
- the event to respond to