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