@ConfigurationProperties(value="discovery") public static class ConsulConfiguration.ConsulDiscoveryConfiguration extends DiscoveryConfiguration
DEFAULT_ENABLED, PREFIX
Constructor and Description |
---|
ConsulDiscoveryConfiguration() |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getDatacenters()
A map of service ID to data centers to query.
|
Map<String,String> |
getSchemes()
A map of service ID to protocol scheme (eg.
|
Map<String,String> |
getTags()
A map of service ID to tags to use for querying.
|
boolean |
isPassing()
Whether services that are not passing health checks should be returned.
|
void |
setDatacenters(Map<String,String> datacenters) |
void |
setPassing(boolean passing) |
void |
setSchemes(Map<String,String> schemes) |
void |
setTags(Map<String,String> tags) |
String |
toString() |
isEnabled, setEnabled
public boolean isPassing()
public void setPassing(boolean passing)
passing
- Whether services that are not passing health checks should be returnedpublic Map<String,String> getTags()
public void setTags(Map<String,String> tags)
tags
- The tags to use for queryingpublic Map<String,String> getDatacenters()
public void setDatacenters(Map<String,String> datacenters)
datacenters
- The data centers to querypublic Map<String,String> getSchemes()
public void setSchemes(Map<String,String> schemes)
schemes
- The service ID to protocol scheme