Class AtomikosDataSourceFactory

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.slf4j.Logger LOG  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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)  
      • Methods inherited from class com.atomikos.jdbc.AtomikosDataSourceBean

        doClose, doInit, getXaDataSource, getXaDataSourceClassName, getXaProperties, isAssignableFromWrappedVendorClass, printXaProperties, setXaDataSource, setXaDataSourceClassName, setXaProperties, toString, unwrapVendorInstance
      • Methods inherited from class com.atomikos.jdbc.AbstractDataSourceBean

        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
    • Field Detail

      • LOG

        public static final org.slf4j.Logger LOG
    • Constructor Detail

      • AtomikosDataSourceFactory

        public AtomikosDataSourceFactory​(JdbcDataSource ds)
      • AtomikosDataSourceFactory

        public AtomikosDataSourceFactory()
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        This call will initialize the AtomikosDataSourceBean after the properties have been set when this factory is used in a Spring context.
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception
      • isWrapperFor

        public boolean isWrapperFor​(Class<?> iface)
        Specified by:
        isWrapperFor in interface Wrapper
        Overrides:
        isWrapperFor in class com.atomikos.jdbc.AbstractDataSourceBean
      • setIdleTimeout

        public void setIdleTimeout​(int idleTimeout)
        Description copied from interface: ClosableDataSource
        How long, in seconds, an idle connection is kept in the pool before it is removed.
        Specified by:
        setIdleTimeout in interface ClosableDataSource