10#include <userver/clients/dns/resolver_fwd.hpp>
11#include <userver/dynamic_config/fwd.hpp>
12#include <userver/storages/mongo/collection.hpp>
13#include <userver/storages/mongo/pool_config.hpp>
14#include <userver/utils/statistics/fwd.hpp>
16USERVER_NAMESPACE_BEGIN
18namespace storages::mongo {
37 Pool(
Pool&&)
noexcept;
61 const std::string& uri,
62 const PoolConfig& pool_config,
64 dynamic_config::Source config_source
68 friend void DumpMetric(
utils::statistics::Writer& writer,
const Pool& pool);
71 void SetPoolSettings(
const PoolSettings& pool_settings);
73 void SetConnectionString(
const std::string& connection_string);
77 std::shared_ptr<impl::PoolImpl> impl_;
80using PoolPtr = std::shared_ptr<
Pool>;