userver
C++ Async Framework
Loading...
Searching...
No Matches
component.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
/// @file userver/clients/http/plugins/retry_budget/component.hpp
4
/// @brief @copybrief clients::http::plugins::retry_budget::Component
5
6
#
include
<
memory
>
7
8
#
include
<
userver
/
clients
/
http
/
plugin_component
.
hpp
>
9
10
USERVER_NAMESPACE_BEGIN
11
12
namespace
clients::http::plugins::retry_budget {
13
14
class
Plugin;
15
16
class
Component
final
:
public
plugin::
ComponentBase
{
17
public
:
18
/// @ingroup userver_component_names
19
/// @brief The default name of
20
/// clients::http::plugins::retry_budget::Component component
21
static
constexpr
std::string_view
kName
=
"http-client-plugin-retry-budget"
;
22
23
Component(
const
components
::ComponentConfig&,
const
components
::ComponentContext&);
24
25
~Component()
override
;
26
27
http::
Plugin
& GetPlugin()
override
;
28
29
static
yaml_config
::Schema GetStaticConfigSchema();
30
31
private
:
32
std::unique_ptr<retry_budget::Plugin> plugin_;
33
};
34
35
}
// namespace clients::http::plugins::retry_budget
36
37
template
<>
38
inline
constexpr
bool
components
::kHasValidate<clients::http::plugins::retry_budget::Component> =
true
;
39
40
USERVER_NAMESPACE_END
userver
clients
http
plugins
retry_budget
component.hpp
Generated on Tue Nov 11 2025 16:12:51 for userver by
Doxygen
1.13.2