#include <connectionPool.h>
公開メンバ関数 | |
connectionPool (int maxConnections=0) | |
~connectionPool () | |
Database_Ptr | get (const connectParams *param=NULL) |
int | maxConnections () const |
void | releaseOne () |
void | reserve (size_t size, const connectParams ¶m) |
bool | reset (int waitSec=5) |
void | setMaxConnections (int n) |
int | usingCount () const |
connection pool class Hold database or databaseManager instance and delivery.
If maxConnections = 0 then not create databases automaticaly at no free a database. This case need call reserve() function at start up the process.
Otherwise, create new database automaticaly by get() function with connectParams. This case need call setMaxConnections() function at start up the process.
connectionPool | ( | int | maxConnections = 0 | ) |
~connectionPool | ( | ) |
Database_Ptr get | ( | const connectParams * | param = NULL | ) |
int maxConnections | ( | ) | const |
void releaseOne | ( | ) |
void reserve | ( | size_t | size, |
const connectParams & | param | ||
) |
bool reset | ( | int | waitSec = 5 | ) |
void setMaxConnections | ( | int | n | ) |
int usingCount | ( | ) | const |