6#include <userver/components/component_base.hpp>
7#include <userver/dist_lock/dist_locked_worker.hpp>
8#include <userver/storages/mongo/collection.hpp>
9#include <userver/storages/mongo/dist_lock_strategy.hpp>
10#include <userver/utils/statistics/entry.hpp>
12USERVER_NAMESPACE_BEGIN
63 DistLockComponentBase(
const components::ComponentConfig&,
67 ~DistLockComponentBase() override;
71 bool OwnsLock()
const noexcept;
118 std::unique_ptr<dist_lock::DistLockedWorker> worker_;
119 bool testsuite_enabled_{
false};
122 utils::statistics::Entry statistics_holder_;