1 #ifndef CONNECTIONPOOLCONFIGURATIONBUILDER_H_ 2 #define CONNECTIONPOOLCONFIGURATIONBUILDER_H_ 21 m_exhaustedAction(
WAIT),
28 m_numTestsPerEvictionRun(3),
29 m_timeBetweenEvictionRuns(120000),
30 m_minEvictableIdleTime(1000l * 60l * 30l),
31 m_testOnBorrow(false),
32 m_testOnReturn(false),
33 m_testWhileIdle(true) {}
44 m_exhaustedAction = exhaustedAction_;
71 m_maxActive = maxActive_;
84 m_maxTotal = maxTotal_;
108 m_maxIdle = maxIdle_;
122 m_minIdle = minIdle_;
133 m_numTestsPerEvictionRun = numTestsPerEvictionRun_;
145 m_timeBetweenEvictionRuns = timeBetweenEvictionRuns_;
159 m_minEvictableIdleTime = minEvictableIdleTime_;
171 m_testOnBorrow = testOnBorrow_;
183 m_testOnReturn = testOnReturn_;
196 m_testWhileIdle = testWhileIdle_;
209 m_numTestsPerEvictionRun,
210 m_timeBetweenEvictionRuns,
211 m_minEvictableIdleTime,
218 (void) configuration;
230 int m_numTestsPerEvictionRun;
231 int m_timeBetweenEvictionRuns;
232 int m_minEvictableIdleTime;
235 bool m_testWhileIdle;
ConnectionPoolConfigurationBuilder & testOnReturn(bool testOnReturn_)
Definition: ConnectionPoolConfigurationBuilder.h:182
ConnectionPoolConfigurationBuilder & maxActive(int maxActive_)
Definition: ConnectionPoolConfigurationBuilder.h:70
virtual ~ConnectionPoolConfigurationBuilder()
Definition: ConnectionPoolConfigurationBuilder.h:35
ConnectionPoolConfigurationBuilder & maxTotal(int maxTotal_)
Definition: ConnectionPoolConfigurationBuilder.h:83
ConnectionPoolConfigurationBuilder(ConfigurationBuilder &builder)
Definition: ConnectionPoolConfigurationBuilder.h:19
ConnectionPoolConfigurationBuilder & timeBetweenEvictionRuns(int timeBetweenEvictionRuns_)
Definition: ConnectionPoolConfigurationBuilder.h:144
Definition: ConnectionPoolConfigurationBuilder.h:15
Definition: AuthenticationConfiguration.h:10
ConnectionPoolConfigurationBuilder & maxWait(long maxWait_)
Definition: ConnectionPoolConfigurationBuilder.h:95
ConnectionPoolConfigurationBuilder & exhaustedAction(ExhaustedAction exhaustedAction_)
Definition: ConnectionPoolConfigurationBuilder.h:43
ConnectionPoolConfigurationBuilder & maxIdle(int maxIdle_)
Definition: ConnectionPoolConfigurationBuilder.h:107
virtual ConnectionPoolConfiguration create()
Definition: ConnectionPoolConfigurationBuilder.h:200
Definition: ConnectionPoolConfiguration.h:14
ConnectionPoolConfigurationBuilder & testOnBorrow(bool testOnBorrow_)
Definition: ConnectionPoolConfigurationBuilder.h:170
Definition: ConfigurationBuilder.h:111
Definition: ConfigurationChildBuilder.h:18
ConnectionPoolConfigurationBuilder & minIdle(int minIdle_)
Definition: ConnectionPoolConfigurationBuilder.h:121
ConnectionPoolConfigurationBuilder & lifo(bool lifo_)
Definition: ConnectionPoolConfigurationBuilder.h:56
ExhaustedAction
Definition: ConnectionPoolConfiguration.h:14
Definition: ConnectionPoolConfiguration.h:21
virtual ConnectionPoolConfigurationBuilder & read(ConnectionPoolConfiguration &configuration)
Definition: ConnectionPoolConfigurationBuilder.h:216
ConnectionPoolConfigurationBuilder & numTestsPerEvictionRun(int numTestsPerEvictionRun_)
Definition: ConnectionPoolConfigurationBuilder.h:132
ConnectionPoolConfigurationBuilder & minEvictableIdleTime(int minEvictableIdleTime_)
Definition: ConnectionPoolConfigurationBuilder.h:158
ConnectionPoolConfigurationBuilder & testWhileIdle(bool testWhileIdle_)
Definition: ConnectionPoolConfigurationBuilder.h:195
virtual void validate()
Definition: ConnectionPoolConfigurationBuilder.h:34