1#ifndef LINTEL_CONNECTIONPOOLREGISTRY_H
2#define LINTEL_CONNECTIONPOOLREGISTRY_H
50 [[
nodiscard]] std::shared_ptr<ConnectionPool>
poolOf(
const std::string &name)
const;
71 mutable std::mutex m_mutex;
72 std::map<std::string, std::shared_ptr<ConnectionPool>> m_pools;
Definition ConnectionPoolRegistry.h:34
static ConnectionPoolRegistry & instance()
std::shared_ptr< ConnectionPool > poolOf(const std::string &name) const
bool hasPool(const std::string &name) const
std::vector< std::string > names() const
void registerPool(std::string name, std::shared_ptr< ConnectionPool > pool)
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9