userver
C++ Async Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
hedging_settings.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
/// @file userver/utils/hedging_settings.hpp
4
/// @brief @copybrief utils::hedging::HedgingSettings
5
6
#
include
<
chrono
>
7
#
include
<
cstddef
>
8
9
USERVER_NAMESPACE_BEGIN
10
11
namespace
utils
::hedging {
12
13
/// Class define hedging settings
14
struct
HedgingSettings
{
15
/// Maximum requests to do
16
std::size_t
max_attempts
{3};
17
/// Delay between attempts
18
std::chrono::milliseconds
hedging_delay
{7};
19
/// Max time to wait for all requests
20
std::chrono::milliseconds
timeout_all
{100};
21
};
22
23
}
// namespace utils::hedging
24
25
USERVER_NAMESPACE_END
userver
utils
hedging_settings.hpp
Generated on
for userver by
Doxygen
1.17.0