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:182
#define CONNECTION_POOL_EXPORT
Definition: connection_pool_export.h:15
int key_type
Definition: method.h:38
static mysql_service_status_t get(THD **thd) noexcept
Definition: mysql_current_thread_reader_all_empty.cc:31
static mysql_service_status_t clear(reference_caching_channel channel) noexcept
Definition: component.cc:146
case opt name
Definition: sslopt-case.h:29