com.uwyn.rife.database
Class ConnectionPool

java.lang.Object
  extended by com.uwyn.rife.database.ConnectionPool

public class ConnectionPool
extends Object

This is a class designed for database connection pooling. By storing connections, along with the thread that they are assigned to, thread-aware operations can be performed safely, securely, and more efficiently.

Since:
1.0
Version:
$Revision: 3634 $
Author:
JR Boyens (jboyens[remove] at uwyn dot com), Geert Bevin (gbevin[remove] at uwyn dot com)

Method Summary
 void cleanup()
          Cleans up all connections that have been reserved by this datasource.
protected  void finalize()
          Ensures that the pool is cleared when this Datasource is garbage collected.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

cleanup

public void cleanup()
             throws DatabaseException
Cleans up all connections that have been reserved by this datasource.

Throws:
DatabaseException - when an error occured during the clearing of the pool
Since:
1.0

finalize

protected void finalize()
                 throws Throwable
Ensures that the pool is cleared when this Datasource is garbage collected.

Overrides:
finalize in class Object
Throws:
Throwable - when an error occured during the clearing of the pool
Since:
1.0


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.