26#ifndef MYSQLROUTER_CONNECTION_POOL_COMPONENT_INCLUDED
27#define MYSQLROUTER_CONNECTION_POOL_COMPONENT_INCLUDED
32#include <unordered_map>
53 template <
class... Args>
55 pools_.emplace(std::forward<Args>(args)...);
64 std::vector<std::string> pool_names()
const;
66 static std::string default_pool_name();
71 std::unordered_map<key_type, std::shared_ptr<ConnectionPool>>
pools_;
Definition: connection_pool_component.h:39
ConnectionPoolComponent(ConnectionPoolComponent &&)=delete
ConnectionPoolComponent(ConnectionPoolComponent const &)=delete
std::unordered_map< key_type, std::shared_ptr< ConnectionPool > > pools_
Definition: connection_pool_component.h:71
void operator=(ConnectionPoolComponent const &)=delete
void emplace(Args &&...args)
Definition: connection_pool_component.h:54
void operator=(ConnectionPoolComponent &&)=delete
std::string key_type
Definition: connection_pool_component.h:43
ConnectionPoolComponent()=default
connection pool of mysql connections.
Definition: connection_pool.h:210
#define CONNECTION_POOL_EXPORT
Definition: connection_pool_export.h:15
int key_type
Definition: http_request.h:50
void get(PSI_field *, PSI_longlong *) noexcept
Definition: pfs_plugin_column_bigint_v1_all_empty.cc:32
static mysql_service_status_t clear(reference_caching_channel channel) noexcept
Definition: component.cc:154
case opt name
Definition: sslopt-case.h:33