MySQL 8.0.40
Source Code Documentation
Mysql::Tools::Dump::Single_transaction_connection_provider Class Reference

#include <single_transaction_connection_provider.h>

Inheritance diagram for Mysql::Tools::Dump::Single_transaction_connection_provider:
[legend]

Public Member Functions

 Single_transaction_connection_provider (Mysql::Tools::Base::I_connection_factory *connection_factory, unsigned int connections, std::function< bool(const Mysql::Tools::Base::Message_data &)> *message_handler)
 
Mysql::Tools::Base::Mysql_query_runnercreate_new_runner (std::function< bool(const Mysql::Tools::Base::Message_data &)> *message_handler) override
 
- Public Member Functions inherited from Mysql::Tools::Dump::Thread_specific_connection_provider
 Thread_specific_connection_provider (Mysql::Tools::Base::I_connection_factory *connection_factory)
 
 ~Thread_specific_connection_provider () override
 
Mysql::Tools::Base::Mysql_query_runnerget_runner (std::function< bool(const Mysql::Tools::Base::Message_data &)> *message_handler) override
 
- Public Member Functions inherited from Mysql::Tools::Dump::I_connection_provider
virtual ~I_connection_provider ()=default
 

Private Attributes

std::vector< Mysql::Tools::Base::Mysql_query_runner * > m_runner_pool
 
std::mutex m_pool_mutex
 
unsigned int m_connections
 

Additional Inherited Members

- Protected Member Functions inherited from Mysql::Tools::Dump::Abstract_connection_provider
 Abstract_connection_provider (Mysql::Tools::Base::I_connection_factory *connection_factory)
 

Constructor & Destructor Documentation

◆ Single_transaction_connection_provider()

Single_transaction_connection_provider::Single_transaction_connection_provider ( Mysql::Tools::Base::I_connection_factory connection_factory,
unsigned int  connections,
std::function< bool(const Mysql::Tools::Base::Message_data &)> *  message_handler 
)

Member Function Documentation

◆ create_new_runner()

Mysql::Tools::Base::Mysql_query_runner * Single_transaction_connection_provider::create_new_runner ( std::function< bool(const Mysql::Tools::Base::Message_data &)> *  message_handler)
overridevirtual

Member Data Documentation

◆ m_connections

unsigned int Mysql::Tools::Dump::Single_transaction_connection_provider::m_connections
private

◆ m_pool_mutex

std::mutex Mysql::Tools::Dump::Single_transaction_connection_provider::m_pool_mutex
private

◆ m_runner_pool

std::vector<Mysql::Tools::Base::Mysql_query_runner *> Mysql::Tools::Dump::Single_transaction_connection_provider::m_runner_pool
private

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