MySQL 9.4.0
Source Code Documentation
collector::MysqlFixedPoolManager Class Reference

#include <mysql_fixed_pool_manager.h>

Classes

class  MysqlCacheCallbacks
 

Public Types

using MySQLSession = CountedMySQLSession
 
using ConnectionParameters = MySQLSession::ConnectionParameters
 
using MySqlFixedCacheManagerImpl = CacheManager< CountedMySQLSession * >
 
using CachedObject = MySqlFixedCacheManagerImpl::CachedObject
 
using Callbacks = MySqlFixedCacheManagerImpl::Callbacks
 
using Object = MySqlFixedCacheManagerImpl::Object
 

Public Member Functions

 MysqlFixedPoolManager (uint32_t passthrough_pool_size)
 
virtual ~MysqlFixedPoolManager ()=default
 
virtual CachedObject get_instance ()
 
void init (DestinationProvider *destination, const std::string &user, const mysql_harness::SecureString &password)
 
virtual void return_instance (CachedObject &object)
 

Private Attributes

uint32_t num_instances_
 
MysqlCacheCallbacks callbacks_
 
MySqlFixedCacheManagerImpl cache_manager_
 

Member Typedef Documentation

◆ CachedObject

using collector::MysqlFixedPoolManager::CachedObject = MySqlFixedCacheManagerImpl::CachedObject

◆ Callbacks

using collector::MysqlFixedPoolManager::Callbacks = MySqlFixedCacheManagerImpl::Callbacks

◆ ConnectionParameters

◆ MySqlFixedCacheManagerImpl

◆ MySQLSession

◆ Object

Constructor & Destructor Documentation

◆ MysqlFixedPoolManager()

collector::MysqlFixedPoolManager::MysqlFixedPoolManager ( uint32_t  passthrough_pool_size)
inlineexplicit

◆ ~MysqlFixedPoolManager()

virtual collector::MysqlFixedPoolManager::~MysqlFixedPoolManager ( )
virtualdefault

Member Function Documentation

◆ get_instance()

virtual CachedObject collector::MysqlFixedPoolManager::get_instance ( )
inlinevirtual

◆ init()

void collector::MysqlFixedPoolManager::init ( DestinationProvider destination,
const std::string &  user,
const mysql_harness::SecureString password 
)

◆ return_instance()

virtual void collector::MysqlFixedPoolManager::return_instance ( CachedObject object)
inlinevirtual

Member Data Documentation

◆ cache_manager_

MySqlFixedCacheManagerImpl collector::MysqlFixedPoolManager::cache_manager_
private

◆ callbacks_

MysqlCacheCallbacks collector::MysqlFixedPoolManager::callbacks_
private

◆ num_instances_

uint32_t collector::MysqlFixedPoolManager::num_instances_
private

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