KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > snaq > db > ConnectionPoolEventAdapter


1 /*
2     DBPool - JDBC Connection Pool Manager
3     Copyright (c) Giles Winstanley
4 */

5 package snaq.db;
6
7 import snaq.util.ObjectPoolEventAdapter;
8
9 /**
10  * Adapter implementation for handling PoolEvents for an ObjectPool.
11  * Provides null implementations of all listener methods so a sub-class can
12  * simply override the ones required.
13  * @author Giles Winstanley
14  */

15 public class ConnectionPoolEventAdapter extends ObjectPoolEventAdapter implements ConnectionPoolListener
16 {
17     public void validationError(ConnectionPoolEvent evt) {}
18     public void poolCheckOut(ConnectionPoolEvent evt) {}
19     public void poolCheckIn(ConnectionPoolEvent evt) {}
20     public void maxPoolLimitReached(ConnectionPoolEvent evt) {}
21     public void maxPoolLimitExceeded(ConnectionPoolEvent evt) {}
22     public void maxSizeLimitReached(ConnectionPoolEvent evt) {}
23     public void maxSizeLimitError(ConnectionPoolEvent evt) {}
24     public void poolParametersChanged(ConnectionPoolEvent evt) {}
25     public void poolReleased(ConnectionPoolEvent evt) {}
26 }
Popular Tags