Package rife.database
Class ConnectionPool
java.lang.Object
rife.database.ConnectionPool
- All Implemented Interfaces:
AutoCloseable
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
-
Method Summary
-
Method Details
-
cleanup
Cleans up all connections that have been reserved by this datasource.- Throws:
DatabaseException
- when an error occurred during the clearing of the pool- Since:
- 1.0
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
DatabaseException
-