Package io.micronaut.discovery.config
Interface ConfigurationClient
- All Superinterfaces:
Described
- All Known Implementing Classes:
DefaultCompositeConfigurationClient
A Configuration client is responsible for reading configuration for configuration servers.
- Since:
- 1.0
- Author:
- graemerocher
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe prefix used to configure the config client.static final StringWhether the configuration client, responsible for reading configuration for configuration servers, is enabled.static final StringThe read timeout used when reading distributed configuration. -
Method Summary
Modifier and TypeMethodDescriptiongetPropertySources(Environment environment) Retrieves all of thePropertySourceregistrations for the given environment.Methods inherited from interface io.micronaut.core.naming.Described
getDescription, getDescription
-
Field Details
-
CONFIGURATION_PREFIX
The prefix used to configure the config client.- See Also:
-
ENABLED
Whether the configuration client, responsible for reading configuration for configuration servers, is enabled.- See Also:
-
READ_TIMEOUT
The read timeout used when reading distributed configuration.- See Also:
-
-
Method Details
-
getPropertySources
Retrieves all of thePropertySourceregistrations for the given environment.- Parameters:
environment- The environment- Returns:
- A
Publisherthat emits zero or manyPropertySourceinstances discovered for the given environment
-