acl
3.5.3.0
|
#include <pgsql_pool.hpp>
Public 成员函数 | |
pgsql_pool (const pgsql_conf &conf) | |
~pgsql_pool (void) | |
Public 成员函数 继承自 acl::db_pool | |
db_pool (const char *dbaddr, size_t count, size_t idx=0) | |
virtual | ~db_pool () |
db_handle * | peek_open () |
size_t | get_dblimit () const |
size_t | get_dbcount () const |
void | set_idle (int ttl) |
Public 成员函数 继承自 acl::connect_pool | |
connect_pool (const char *addr, size_t max, size_t idx=0) | |
virtual | ~connect_pool () |
connect_pool & | set_timeout (int conn_timeout, int rw_timeout) |
connect_pool & | set_retry_inter (int retry_inter) |
connect_pool & | set_idle_ttl (time_t ttl) |
connect_pool & | set_check_inter (int n) |
connect_client * | peek (bool on=true) |
void | bind_one (connect_client *conn) |
void | put (connect_client *conn, bool keep=true) |
int | check_idle (time_t ttl, bool exclusive=true) |
void | set_alive (bool ok) |
bool | aliving () |
const char * | get_addr () const |
size_t | get_max () const |
size_t | get_count () const |
size_t | get_idx () const |
void | reset_statistics (int inter) |
unsigned long long | get_total_used () const |
unsigned long long | get_current_used () const |
void | set_key (const char *key) |
const char * | get_key (void) const |
Protected 成员函数 | |
connect_client * | create_connect (void) |
Protected 成员函数 继承自 acl::connect_pool | |
void | set_delay_destroy () |
Protected 成员函数 继承自 acl::acl::noncopyable | |
noncopyable () | |
~noncopyable () | |
额外继承的成员函数 | |
Protected 属性 继承自 acl::connect_pool | |
bool | alive_ |
bool | delay_destroy_ |
int | retry_inter_ |
time_t | last_dead_ |
char | key_ [256] |
char | addr_ [256] |
int | conn_timeout_ |
int | rw_timeout_ |
size_t | idx_ |
size_t | max_ |
size_t | count_ |
time_t | idle_ttl_ |
time_t | last_check_ |
int | check_inter_ |
locker | lock_ |
unsigned long long | total_used_ |
unsigned long long | current_used_ |
time_t | last_ |
std::list< connect_client * > | pool_ |
在文件 pgsql_pool.hpp 第 12 行定义.
acl::pgsql_pool::pgsql_pool | ( | const pgsql_conf & | conf | ) |
acl::pgsql_pool::~pgsql_pool | ( | void | ) |
|
protectedvirtual |
实现了 acl::connect_pool.