org.deegree.io
Class DBPool
java.lang.Object
java.util.TimerTask
org.deegree.framework.util.ObjectPool
org.deegree.io.DBPool
- All Implemented Interfaces:
- Runnable
public class DBPool
- extends ObjectPool
class to manage a pool of database connections.
- Since:
- 2.0
- Version:
- $Revision: 9342 $, 1.0. $Revision: 9342 $, $Date: 2007-12-27 13:32:57 +0100 (Do, 27 Dez 2007) $
- Author:
- Andreas Poth, last edited by: $Author: apoth $
Methods inherited from class org.deegree.framework.util.ObjectPool |
clear, getInstance, getMaxInstances, getMaxLifeTime, getMaxUsageTime, getUpdateInterval, releaseObject, run, setMaxInstances, setMaxLifeTime, setMaxUsageTime, setUpdateInterval, toString |
DBPool
public DBPool(String driver,
String database,
String user,
String password)
- initialize pool for defined connection parameters
- Parameters:
driver
- database
- user
- password
-
DBPool
public DBPool(String driver,
String database,
Properties properties)
- initialize pool for defined connection parameters
- Parameters:
driver
- database
- properties
-
acquireObject
public Object acquireObject()
throws DBPoolException
- get an object from the object pool
- Throws:
DBPoolException
onObjectKill
public void onObjectKill(Object o)
- will be called when the object is removed from the pool
- Specified by:
onObjectKill
in class ObjectPool
- Parameters:
o
-
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net