Component that stores the runtime config. More...
#include <userver/dynamic_config/storage/component.hpp>
Classes | |
class | NoblockSubscriber |
Allows to subscribe to DynamicConfig updates without waiting for the first update to complete. Primarily intended for internal use. More... | |
Public Member Functions | |
DynamicConfig (const ComponentConfig &, const ComponentContext &) | |
dynamic_config::Source | GetSource () |
Public Member Functions inherited from components::DynamicConfigUpdatesSinkBase | |
DynamicConfigUpdatesSinkBase (const components::ComponentConfig &, const components::ComponentContext &) | |
Public Member Functions inherited from components::LoggableComponentBase | |
LoggableComponentBase (const ComponentConfig &, const ComponentContext &) | |
LoggableComponentBase (LoggableComponentBase &&)=delete | |
LoggableComponentBase (const LoggableComponentBase &)=delete | |
~LoggableComponentBase () override=default | |
ComponentHealth | GetComponentHealth () const override |
void | OnLoadingCancelled () override |
void | OnAllComponentsLoaded () override |
void | OnAllComponentsAreStopping () override |
Static Public Member Functions | |
static yaml_config::Schema | GetStaticConfigSchema () |
Static Public Member Functions inherited from components::LoggableComponentBase | |
static yaml_config::Schema | GetStaticConfigSchema () |
Static Public Attributes | |
static constexpr std::string_view | kName = "dynamic-config" |
The default name of components::DynamicConfig. | |
Component that stores the runtime config.
Name | Description | Default value |
---|---|---|
fs-cache-path | path to the file to read and dump a config cache; set to empty string to disable reading and dumping configs to FS | - |
fs-task-processor | name of the task processor to run the blocking file write operations | - |
Definition at line 41 of file component.hpp.
dynamic_config::Source components::DynamicConfig::GetSource | ( | ) |
Use dynamic_config::Source
to get up-to-date config values, or to do something special on config updates