@Singleton @Requires(property="micronaut.config-client.enabled", value="true", defaultValue="false") public class DistributedPropertySourceLocator extends java.lang.Object implements BootstrapPropertySourceLocator
A BootstrapPropertySourceLocator implementation that uses the ConfigurationClient to find
 available PropertySource instances from distributed configuration sources.
This implementation using a Blocking operation which is required during bootstrap which is configured to Timeout after
 10 seconds. The timeout can be configured with micronaut.config.readTimeout in configuration
EMPTY_LOCATOR| Constructor and Description | 
|---|
| DistributedPropertySourceLocator(ConfigurationClient configurationClient,
                                java.time.Duration readTimeout) | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.Iterable<PropertySource> | findPropertySources(Environment environment)A blocking interface that will attempt to resolve either remote or local  PropertySourceinstances
 for the current Environment. | 
public DistributedPropertySourceLocator(ConfigurationClient configurationClient, @Value(value="${micronaut.config-client.read-timeout:10s}") java.time.Duration readTimeout)
configurationClient - The configuration clientreadTimeout - The read timeoutpublic java.lang.Iterable<PropertySource> findPropertySources(Environment environment) throws ConfigurationException
BootstrapPropertySourceLocatorPropertySource instances
 for the current Environment.findPropertySources in interface BootstrapPropertySourceLocatorenvironment - The environmentPropertySourceConfigurationException - If the resolve fails and fail fast is set to true