userver
C++ Async Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
settings.hpp
Go to the documentation of this file.
1
#pragma once
2
5
6
#include <chrono>
7
8
#include <
userver/yaml_config/fwd.hpp
>
9
10
USERVER_NAMESPACE_BEGIN
11
12
namespace
ydb {
13
15
struct
DistLockSettings
{
24
std::chrono::milliseconds
session_timeout
{5000};
25
34
std::chrono::milliseconds
restart_session_delay
{1000};
35
37
std::chrono::milliseconds
acquire_interval
{100};
38
40
std::chrono::milliseconds
restart_delay
{100};
41
51
std::chrono::milliseconds
cancel_task_time_limit
{5000};
52
};
53
54
}
// namespace ydb
55
56
namespace
formats::parse
{
57
58
// ydb::Parse is a variable template, thus have to define formats Parse here.
59
ydb::DistLockSettings Parse(
const
yaml_config::YamlConfig& config,
To<ydb::DistLockSettings>
);
60
61
}
// namespace formats::parse
62
63
USERVER_NAMESPACE_END
userver
ydb
dist_lock
settings.hpp
Generated on
for userver by
Doxygen
1.17.0