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
14namespace storages::mongo {
63 DistLockComponentBase(
69 ~DistLockComponentBase() override;
73 bool OwnsLock()
const noexcept;
120 std::unique_ptr<dist_lock::DistLockedWorker> worker_;
121 bool testsuite_enabled_{
false};
124 utils::statistics::Entry statistics_holder_;