@Singleton @RequiresEureka public class EurekaServiceInstanceList extends DiscoveryServerInstanceList
A ServiceInstanceList
for Consul which reads from the EurekaConfiguration
.
The reason this is useful is if a RefreshEvent
occurs then the
EurekaConfiguration
will be updated and the backing list of ServiceInstance
changed at runtime.
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
EurekaServiceInstanceList(DiscoveryClientConfiguration configuration,
ApplicationConfiguration.InstanceConfiguration instanceConfiguration)
Deprecated.
|
EurekaServiceInstanceList(EurekaConfiguration configuration,
ApplicationConfiguration.InstanceConfiguration instanceConfiguration)
Creates a new eureka service instance list.
|
Modifier and Type | Method and Description |
---|---|
String |
getID() |
getInstances, getOrder, onApplicationEvent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
supports
@Deprecated public EurekaServiceInstanceList(DiscoveryClientConfiguration configuration, ApplicationConfiguration.InstanceConfiguration instanceConfiguration)
configuration
- The discovery configinstanceConfiguration
- The instance config@Inject public EurekaServiceInstanceList(EurekaConfiguration configuration, ApplicationConfiguration.InstanceConfiguration instanceConfiguration)
configuration
- The discovery configinstanceConfiguration
- The instance configpublic String getID()