42 #ifndef SDB_CONNECTIONPOOL_HPP_
43 #define SDB_CONNECTIONPOOL_HPP_
57 class sdbConnectionPoolImpl ;
99 const std::vector<std::string> &addrs,
107 INT32 getIdleConnNum()
const ;
114 INT32 getUsedConnNum()
const ;
121 INT32 getNormalAddrNum()
const ;
128 INT32 getAbnormalAddrNum()
const ;
135 INT32 getLocalAddrNum()
const ;
147 INT32 getConnection(
sdb*& conn, INT64 timeoutms = 5000 ) ;
156 void releaseConnection(
sdb*& conn ) ;
170 void updateAuthInfo(
const string &username,
const string &passwd ) ;
180 void updateAuthInfo(
const string &username,
const string &cipherFile,
181 const string &token ) ;
191 INT32 updateAddress(
const std::vector<std::string> &addrs ) ;
194 sdbConnectionPoolImpl *_pImpl ;