26#ifndef ROUTER_SRC_REST_MRS_SRC_FIXED_CONNECTION_POOL_MANAGER_H_
27#define ROUTER_SRC_REST_MRS_SRC_FIXED_CONNECTION_POOL_MANAGER_H_
46 using Callbacks = MySqlFixedCacheManagerImpl::Callbacks;
73 if (
object.parent_)
object.parent_->return_instance(
object);
Definition: cache_manager.h:41
Definition: cache_manager.h:114
CacheManager::Object Object
Definition: cache_manager.h:116
CachedObject get_instance(bool wait)
Definition: cache_manager.h:136
CountedMySQLSession * Object
Definition: cache_manager.h:38
Definition: counted_mysql_session.h:38
Definition: destination_provider.h:37
Definition: mysql_fixed_pool_manager.h:49
Object object_allocate(bool wait) override
Definition: mysql_fixed_pool_manager.cc:43
bool object_retrived_from_cache(Object) override
Definition: mysql_fixed_pool_manager.cc:60
bool object_before_cache(Object, bool dirty) override
Definition: mysql_fixed_pool_manager.cc:52
void object_remove(Object) override
Definition: mysql_fixed_pool_manager.cc:47
Definition: mysql_fixed_pool_manager.h:40
MysqlCacheCallbacks callbacks_
Definition: mysql_fixed_pool_manager.h:78
MysqlFixedPoolManager(uint32_t passthrough_pool_size)
Definition: mysql_fixed_pool_manager.h:58
void init(DestinationProvider *destination, const std::string &user, const mysql_harness::SecureString &password)
Definition: mysql_fixed_pool_manager.cc:109
virtual void return_instance(CachedObject &object)
Definition: mysql_fixed_pool_manager.h:72
MySqlFixedCacheManagerImpl cache_manager_
Definition: mysql_fixed_pool_manager.h:79
virtual ~MysqlFixedPoolManager()=default
virtual CachedObject get_instance()
Definition: mysql_fixed_pool_manager.h:65
uint32_t num_instances_
Definition: mysql_fixed_pool_manager.h:77
Definition: mysql_fixed_pool_manager.h:82
Null-terminated string which is securely wiped on destruction.
Definition: secure_string.h:59
static char * password
Definition: mysql_secure_installation.cc:58
Definition: cache_manager.h:33
collector::CountedMySQLSession::ConnectionParameters ConnectionParameters
Definition: query_retry_on_ro.cc:38
collector::MysqlCacheManager::CachedObject CachedObject
Definition: handler_db_object_function.cc:55
static int wait(mysql_cond_t *that, mysql_mutex_t *mutex_arg, const char *, unsigned int)
Definition: mysql_cond_v1_native.cc:62
Definition: counted_mysql_session.h:41