public class WikittyManagedDataSource
extends org.apache.commons.dbcp.managed.BasicManagedDataSource
| Modifier and Type | Field and Description |
|---|---|
protected int |
warnConnectionCount
nombre de connexions actives simultanement qui affiche un message
lorsqu'un message est affiche ce nombre est multiplie par 2 pour le
prochain message
|
protected byte |
whenExhaustedAction |
closed, connectionInitSqls, connectionPool, connectionProperties, dataSource, defaultAutoCommit, defaultCatalog, defaultReadOnly, defaultTransactionIsolation, driverClassLoader, driverClassName, initialSize, logWriter, maxActive, maxIdle, maxOpenPreparedStatements, maxWait, minEvictableIdleTimeMillis, minIdle, numTestsPerEvictionRun, password, poolPreparedStatements, testOnBorrow, testOnReturn, testWhileIdle, timeBetweenEvictionRunsMillis, url, username, validationQuery, validationQueryTimeout| Constructor and Description |
|---|
WikittyManagedDataSource() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createConnectionPool() |
Connection |
getConnection() |
byte |
getWhenExhaustedAction() |
void |
setWhenExhaustedAction(byte whenExhaustedAction)
Change whenExhaustedAction of connectionPool
|
createConnectionFactory, createDataSourceInstance, createPoolableConnectionFactory, getTransactionManager, getTransactionRegistry, getXADataSource, getXaDataSourceInstance, setTransactionManager, setXADataSource, setXaDataSourceInstanceaddConnectionProperty, close, createDataSource, getConnection, getConnectionInitSqls, getDefaultAutoCommit, getDefaultCatalog, getDefaultReadOnly, getDefaultTransactionIsolation, getDriverClassLoader, getDriverClassName, getInitialSize, getLogAbandoned, getLoginTimeout, getLogWriter, getMaxActive, getMaxIdle, getMaxOpenPreparedStatements, getMaxWait, getMinEvictableIdleTimeMillis, getMinIdle, getNumActive, getNumIdle, getNumTestsPerEvictionRun, getPassword, getRemoveAbandoned, getRemoveAbandonedTimeout, getTestOnBorrow, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRunsMillis, getUrl, getUsername, getValidationQuery, getValidationQueryTimeout, isAccessToUnderlyingConnectionAllowed, isClosed, isPoolPreparedStatements, isWrapperFor, log, removeConnectionProperty, setAccessToUnderlyingConnectionAllowed, setConnectionInitSqls, setConnectionProperties, setDefaultAutoCommit, setDefaultCatalog, setDefaultReadOnly, setDefaultTransactionIsolation, setDriverClassLoader, setDriverClassName, setInitialSize, setLogAbandoned, setLoginTimeout, setLogWriter, setMaxActive, setMaxIdle, setMaxOpenPreparedStatements, setMaxWait, setMinEvictableIdleTimeMillis, setMinIdle, setNumTestsPerEvictionRun, setPassword, setPoolPreparedStatements, setRemoveAbandoned, setRemoveAbandonedTimeout, setTestOnBorrow, setTestOnReturn, setTestWhileIdle, setTimeBetweenEvictionRunsMillis, setUrl, setUsername, setValidationQuery, setValidationQueryTimeout, unwrap, validateConnectionFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParentLoggerprotected int warnConnectionCount
protected byte whenExhaustedAction
public byte getWhenExhaustedAction()
GenericObjectPool.WHEN_EXHAUSTED_BLOCK,
GenericObjectPool.WHEN_EXHAUSTED_FAIL,
GenericObjectPool.WHEN_EXHAUSTED_GROWpublic void setWhenExhaustedAction(byte whenExhaustedAction)
whenExhaustedAction - GenericObjectPool.WHEN_EXHAUSTED_BLOCK,
GenericObjectPool.WHEN_EXHAUSTED_FAIL,
GenericObjectPool.WHEN_EXHAUSTED_GROWprotected void createConnectionPool()
createConnectionPool in class org.apache.commons.dbcp.BasicDataSourcepublic Connection getConnection() throws SQLException
getConnection in interface DataSourcegetConnection in class org.apache.commons.dbcp.BasicDataSourceSQLExceptionCopyright © 2009–2014 CodeLutin. All rights reserved.