C - the type of configuration being used by the servicepublic interface ConfigurationUpdater<C extends Configuration>
| Modifier and Type | Interface and Description |
|---|---|
static class |
ConfigurationUpdater.UpdateResult
The result of an
updateConfiguration(Configuration) call. |
| Modifier and Type | Method and Description |
|---|---|
ConfigurationUpdater.UpdateResult |
updateConfiguration(C candidateConfig)
Validates the provided
candidateConfig, and updates the target configuration if the
validation passes. |
ConfigurationUpdater.UpdateResult updateConfiguration(C candidateConfig) throws ConfigStoreException
candidateConfig, and updates the target configuration if the
validation passes.candidateConfig - the new candidate configuration to be validated and potentially marked
as the target configurationConfigStoreException - if there's an error when reading or writing to the config store,
or if there are validation errors against the config and no
prior fallback config is available