41 #ifndef SDB_CONNECTIONPOOL_COMM_HPP_
42 #define SDB_CONNECTIONPOOL_COMM_HPP_
55 #define SDB_CONNPOOL_TOPRECREATE_THRESHOLD 2
57 #define SDB_CONNPOOL_CHECKUNNORMALCOORD_INTERVAL (60 * 1000)
59 #define SDB_CONNPOOL_CREATECONN_RETRYTIME 3
85 _checkInterval(60 * 1000),
86 _keepAliveTimeout(0 * 1000),
87 _syncCoordInterval(0 * 1000),
88 _validateConnection(FALSE),
99 INT32 _initConnCount ;
100 INT32 _deltaIncCount ;
101 INT32 _maxIdleCount ;
104 INT32 _checkInterval ;
105 INT32 _keepAliveTimeout ;
107 INT32 _syncCoordInterval ;
109 BOOLEAN _validateConnection ;
124 const string &username,
125 const string &passwd ) ;
136 void setAuthInfo(
const string &username,
137 const string &cipherFile,
138 const string &token ) ;
221 void setCheckIntervalInfo( INT32 interval, INT32 aliveTime = 0 ) ;
240 void setSyncCoordInterval ( INT32 interval )
242 _syncCoordInterval = interval ;
256 void setValidateConnection( BOOLEAN bCheck )
258 _validateConnection = bCheck ;
276 _connectStrategy = strategy ;
284 return _connectStrategy ;
291 void setUseSSL( BOOLEAN useSSL )