#include <userver/congestion_control/component.hpp>
Component to limit too active requests, also known as CC.
Options inherited from components::ComponentBase :
Definition at line 36 of file component.hpp.
Inheritance diagram for congestion_control::Component:Public Member Functions | |
| Component (const components::ComponentConfig &, const components::ComponentContext &) | |
| server::congestion_control::Limiter & | GetServerLimiter () |
| server::congestion_control::Sensor & | GetServerSensor () |
| const congestion_control::Controller & | GetServerController () const |
| ComponentHealth | GetComponentHealth () const override |
| void | OnLoadingCancelled () override |
Static Public Member Functions | |
| static yaml_config::Schema | GetStaticConfigSchema () |
Static Public Attributes | |
| static constexpr std::string_view | kName = "congestion-control" |
| The default name of congestion_control::Component component. | |
Protected Types | |
| using | LoggableComponentBase = ComponentBase |
|
protectedinherited |
Definition at line 67 of file component_base.hpp.
|
inlineoverridevirtualinherited |
Override this function to inform the world of the state of your component.
Reimplemented from components::RawComponentBase.
Reimplemented in server::handlers::Restart.
Definition at line 35 of file component_base.hpp.
|
inlineoverridevirtualinherited |
Called once if the creation of any other component failed. If the current component expects some other component to take any action with the current component, this call is a signal that such action may never happen due to components loading was cancelled. Application components might not want to override it.
Reimplemented from components::RawComponentBase.
Definition at line 42 of file component_base.hpp.