全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 ページ
公開メンバ関数 | 全メンバ一覧
connectionPool< Database_Ptr > クラステンプレート

#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 &param)
 
bool reset (int waitSec=5)
 
void setMaxConnections (int n)
 
int usingCount () const
 

詳解

template<class Database_Ptr>
class bzs::db::protocol::tdap::client::connectionPool< Database_Ptr >

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)

関数詳解

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

Transactd SDK 2018年07月31日(火) 19時40分32秒 doxygen