MySQL 8.0.39
Source Code Documentation
ConnectionPoolComponent Class Reference

#include <connection_pool_component.h>

Public Types

using key_type = std::string
 

Public Member Functions

 ConnectionPoolComponent (ConnectionPoolComponent const &)=delete
 
void operator= (ConnectionPoolComponent const &)=delete
 
 ConnectionPoolComponent (ConnectionPoolComponent &&)=delete
 
void operator= (ConnectionPoolComponent &&)=delete
 
template<class... Args>
void emplace (Args &&... args)
 
void erase (const key_type &name)
 
void clear ()
 
std::shared_ptr< ConnectionPoolget (const key_type &name)
 
std::vector< std::string > pool_names () const
 

Static Public Member Functions

static ConnectionPoolComponentget_instance ()
 
static std::string default_pool_name ()
 

Private Member Functions

 ConnectionPoolComponent ()=default
 

Private Attributes

std::unordered_map< key_type, std::shared_ptr< ConnectionPool > > pools_
 

Member Typedef Documentation

◆ key_type

using ConnectionPoolComponent::key_type = std::string

Constructor & Destructor Documentation

◆ ConnectionPoolComponent() [1/3]

ConnectionPoolComponent::ConnectionPoolComponent ( ConnectionPoolComponent const &  )
delete

◆ ConnectionPoolComponent() [2/3]

ConnectionPoolComponent::ConnectionPoolComponent ( ConnectionPoolComponent &&  )
delete

◆ ConnectionPoolComponent() [3/3]

ConnectionPoolComponent::ConnectionPoolComponent ( )
privatedefault

Member Function Documentation

◆ clear()

void ConnectionPoolComponent::clear ( )

◆ default_pool_name()

std::string ConnectionPoolComponent::default_pool_name ( )
static

◆ emplace()

template<class... Args>
void ConnectionPoolComponent::emplace ( Args &&...  args)
inline

◆ erase()

void ConnectionPoolComponent::erase ( const key_type name)

◆ get()

std::shared_ptr< ConnectionPool > ConnectionPoolComponent::get ( const key_type name)

◆ get_instance()

ConnectionPoolComponent & ConnectionPoolComponent::get_instance ( )
static

◆ operator=() [1/2]

void ConnectionPoolComponent::operator= ( ConnectionPoolComponent &&  )
delete

◆ operator=() [2/2]

void ConnectionPoolComponent::operator= ( ConnectionPoolComponent const &  )
delete

◆ pool_names()

std::vector< std::string > ConnectionPoolComponent::pool_names ( ) const

Member Data Documentation

◆ pools_

std::unordered_map<key_type, std::shared_ptr<ConnectionPool> > ConnectionPoolComponent::pools_
private

The documentation for this class was generated from the following files: