6#include <userver/dist_lock/dist_lock_settings.hpp>
7#include <userver/dist_lock/dist_lock_strategy.hpp>
8#include <userver/engine/deadline.hpp>
9#include <userver/rcu/rcu.hpp>
10#include <userver/storages/postgres/options.hpp>
12USERVER_NAMESPACE_BEGIN
21 const std::string& table,
22 const std::string& lock_name,
26 void Acquire(std::chrono::milliseconds lock_ttl,
const std::string& locker_id)
override;
28 void Release(
const std::string& locker_id)
override;
34 rcu::Variable<CommandControl> cc_;
35 const std::string acquire_query_;
36 const std::string release_query_;
37 const std::string lock_name_;
38 const std::string owner_prefix_;