public class AtomikosDataSourceFactory extends com.atomikos.jdbc.AtomikosDataSourceBean implements org.springframework.beans.factory.InitializingBean, ClosableDataSource
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
AtomikosDataSourceFactory() |
AtomikosDataSourceFactory(JdbcDataSource ds) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
This call will initialize the
AtomikosDataSourceBean after the properties
have been set when this factory is used in a Spring context. |
Logger |
getParentLogger() |
boolean |
isWrapperFor(Class<?> iface) |
void |
setIdleTimeout(int idleTimeout)
How long, in seconds, an idle connection is kept in the pool before it is removed.
|
void |
setMaxPool(int maxPool)
The maximum number of pooled connections to retain.
|
void |
setMaxSize(int maxSize)
The maximum number of connections that can be created.
|
void |
setMinPool(int minPool)
The minimum number of pooled connections to retain.
|
<T> T |
unwrap(Class<T> iface) |
doClose, doInit, getXaDataSource, getXaDataSourceClassName, getXaProperties, isAssignableFromWrappedVendorClass, printXaProperties, setXaDataSource, setXaDataSourceClassName, setXaProperties, toString, unwrapVendorInstance
close, getBorrowConnectionTimeout, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getDefaultIsolationLevel, getLocalTransactionMode, getLoginTimeout, getLogWriter, getMaintenanceInterval, getMaxIdleTime, getMaxLifetime, getMaxPoolSize, getMinPoolSize, getReapTimeout, getReference, getTestQuery, getUniqueResourceName, init, poolAvailableSize, poolTotalSize, refreshPool, setBorrowConnectionTimeout, setDefaultIsolationLevel, setLoginTimeout, setLogWriter, setMaintenanceInterval, setMaxIdleTime, setMaxLifetime, setMaxPoolSize, setMinPoolSize, setPoolSize, setReapTimeout, setTestQuery, setUniqueResourceName, throwAtomikosSQLException, throwAtomikosSQLException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, setLoginTimeout
getConnection, getConnection
getLoginTimeout, getLogWriter, setLogWriter
public AtomikosDataSourceFactory(JdbcDataSource ds)
public AtomikosDataSourceFactory()
public void afterPropertiesSet() throws Exception
AtomikosDataSourceBean
after the properties
have been set when this factory is used in a Spring context.afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger
in interface CommonDataSource
getParentLogger
in class com.atomikos.jdbc.AbstractDataSourceBean
SQLFeatureNotSupportedException
public <T> T unwrap(Class<T> iface) throws SQLException
unwrap
in interface Wrapper
unwrap
in class com.atomikos.jdbc.AbstractDataSourceBean
SQLException
public boolean isWrapperFor(Class<?> iface)
isWrapperFor
in interface Wrapper
isWrapperFor
in class com.atomikos.jdbc.AbstractDataSourceBean
public void setIdleTimeout(int idleTimeout)
ClosableDataSource
setIdleTimeout
in interface ClosableDataSource
public void setMinPool(int minPool)
ClosableDataSource
setMinPool
in interface ClosableDataSource
public void setMaxPool(int maxPool)
ClosableDataSource
setMaxPool
in interface ClosableDataSource
public void setMaxSize(int maxSize)
ClosableDataSource
setMaxSize
in interface ClosableDataSource
Copyright © 2020. All rights reserved.