org.apache.avalon.excalibur.datasource
Class JdbcConnectionPool
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLoggable
|
+--org.apache.avalon.excalibur.pool.AbstractPool
|
+--org.apache.avalon.excalibur.pool.DefaultPool
|
+--org.apache.avalon.excalibur.pool.SoftResourceLimitingPool
|
+--org.apache.avalon.excalibur.pool.HardResourceLimitingPool
|
+--org.apache.avalon.excalibur.datasource.JdbcConnectionPool
- All Implemented Interfaces:
- org.apache.avalon.framework.component.Component, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.logger.Loggable, Pool, Resizable, java.lang.Runnable, org.apache.avalon.framework.thread.ThreadSafe
- public class JdbcConnectionPool
- extends HardResourceLimitingPool
- implements java.lang.Runnable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable
The Pool implementation for JdbcConnections. It uses a background
thread to manage the number of SQL Connections.
- Since:
- 4.0
- Version:
- CVS $Revision: 1.3 $ $Date: 2001/08/09 08:20:09 $
- Author:
- Berin Loritsch
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.avalon.framework.activity.Disposable |
dispose |
JdbcConnectionPool
public JdbcConnectionPool(JdbcConnectionFactory factory,
DefaultPoolController controller,
int min,
int max,
boolean autoCommit)
throws java.lang.Exception
initialize
public void initialize()
- Specified by:
initialize
in interface org.apache.avalon.framework.activity.Initializable
- Overrides:
initialize
in class HardResourceLimitingPool
newPoolable
protected final Poolable newPoolable()
throws java.lang.Exception
- Description copied from class:
AbstractPool
- This is the method to override when you need to enforce creational
policies.
- Overrides:
newPoolable
in class HardResourceLimitingPool
get
public Poolable get()
throws java.lang.Exception
- Overrides:
get
in class DefaultPool
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.