public class AtomikosNonPoolingDataSourceBean extends AtomikosDataSourceBean
DEFAULT_BORROW_CONNECTION_TIMEOUT, DEFAULT_ISOLATION_LEVEL_UNSET, DEFAULT_MAINTENANCE_INTERVAL, DEFAULT_MAX_IDLE_TIME, DEFAULT_MAX_LIFETIME, DEFAULT_POOL_SIZE| Constructor and Description |
|---|
AtomikosNonPoolingDataSourceBean() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertPoolSizeSettings() |
protected ConnectionFactory<Connection> |
doInit() |
Connection |
getConnection() |
void |
setConcurrentConnectionValidation(boolean value)
Sets whether or not to use concurrent connection validation.
|
void |
setMaintenanceInterval(int maintenanceInterval)
Sets the maintenance interval for the pool maintenance thread.
|
void |
setMaxIdleTime(int maxIdleTime)
Sets the maximum amount of seconds that unused excess connections should stay in the pool.
|
void |
setMaxLifetime(int maxLifetime)
Sets the maximum amount of seconds that a connection is kept in the pool before
it is destroyed automatically.
|
void |
setMaxPoolSize(int maxPoolSize)
Sets the maximum pool size.
|
void |
setMinPoolSize(int minPoolSize)
Sets the minimum pool size.
|
void |
setPoolSize(int poolSize)
Sets both the minimal and maximal pool size.
|
doClose, getEndExistingXaBranchFlags, getIgnoreJtaTransactions, getJoinExistingXaBranchFlags, getLocalTransactionMode, getPropagateJtaTimeoutToXaResource, getRecycleActiveConnectionsInTransaction, getResumeExistingXaBranchFlags, getStartNewXaBranchFlags, getSupportsTmJoin, getSuspendExistingXaBranchFlags, getXaDataSource, getXaDataSourceClassName, getXaProperties, getXaPropertyNamesToHide, isAssignableFromWrappedVendorClass, printXaProperties, setEndExistingXaBranchFlags, setJoinExistingXaBranchFlags, setLocalTransactionMode, setPropagateJtaTimeoutToXaResource, setRecycleActiveConnectionsInTransaction, setResumeExistingXaBranchFlags, setStartNewXaBranchFlags, setSupportsTmJoin, setSuspendExistingXaBranchFlags, setXaDataSource, setXaDataSourceClassName, setXaProperties, setXaPropertyNamesToHide, unwrapVendorInstanceclose, getBorrowConnectionTimeout, getConcurrentConnectionValidation, getConnection, getConnectionValidationInterval, getDefaultIsolationLevel, getFailOnInitIfDatabaseDown, getInitConnectionSql, getLoginTimeout, getLogWriter, getMaintenanceInterval, getMaxIdleTime, getMaxLifetime, getMaxPoolSize, getMinPoolSize, getNetworkTimeout, getParentLogger, getReference, getTestQuery, getUniqueResourceName, getUseDriverBasedConnectionValidation, hasInitConnectionSQL, init, intializeVendorConnection, isWrapperFor, poolAvailableSize, poolTotalSize, refreshPool, setBorrowConnectionTimeout, setConnectionValidationInterval, setDefaultIsolationLevel, setFailOnInitIfDatabaseDown, setInitConnectionSql, setLoginTimeout, setLogWriter, setNetworkTimeout, setTestQuery, setUniqueResourceName, setUseDriverBasedConnectionValidation, throwAtomikosSQLException, throwAtomikosSQLException, toString, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetConnectiongetLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriterisWrapperFor, unwrappublic Connection getConnection() throws SQLException
getConnection in interface DataSourcegetConnection in class AbstractDataSourceBeanSQLExceptionprotected ConnectionFactory<Connection> doInit() throws Exception
doInit in class AtomikosDataSourceBeanExceptionpublic void setMaxPoolSize(int maxPoolSize)
AbstractDataSourceBeansetMaxPoolSize in class AbstractDataSourceBeanpublic void setMinPoolSize(int minPoolSize)
AbstractDataSourceBeansetMinPoolSize in class AbstractDataSourceBeanpublic void setMaintenanceInterval(int maintenanceInterval)
AbstractDataSourceBeansetMaintenanceInterval in class AbstractDataSourceBeanmaintenanceInterval - The interval in seconds. If not set or not positive then the pool's default (60 secs) will be used.public void setPoolSize(int poolSize)
AbstractDataSourceBeansetPoolSize in class AbstractDataSourceBeanpublic void setConcurrentConnectionValidation(boolean value)
AbstractDataSourceBeansetConcurrentConnectionValidation in class AbstractDataSourceBeanpublic void setMaxIdleTime(int maxIdleTime)
AbstractDataSourceBeansetMaxIdleTime in class AbstractDataSourceBeanmaxIdleTime - The preferred idle time for unused excess connections. Note that this value is
only an indication; the pool will check regularly as indicated by the maintenanceInteval property.
The default is 60 seconds.public void setMaxLifetime(int maxLifetime)
AbstractDataSourceBeansetMaxLifetime in class AbstractDataSourceBeanprotected void assertPoolSizeSettings()
throws AtomikosSQLException
assertPoolSizeSettings in class AbstractDataSourceBeanAtomikosSQLExceptionCopyright © 2026. All rights reserved.