| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.logicalcobwebs.proxool.util.AbstractListenerContainerorg.logicalcobwebs.proxool.CompositeConnectionListenerpublic class CompositeConnectionListenerextends AbstractListenerContainerimplements ConnectionListenerIFConnectionListenerIF that keeps a list of ConnectionListenerIFs
and notifies them in a thread safe manner.
It also implements ListenerContainerIF
which provides methods for
adding and
removing listeners.
Fields inherited from interface org.logicalcobwebs.proxool.ConnectionListenerIF | |
FATAL_SQL_EXCEPTION_DETECTED, HOUSE_KEEPER_TEST_FAIL, MANUAL_EXPIRY, MAXIMUM_ACTIVE_TIME_EXPIRED, MAXIMUM_CONNECTION_LIFETIME_EXCEEDED, RESET_FAIL, SHUTDOWN, VALIDATION_FAIL | |
Method Summary | |
void |
|
void |
|
void |
|
void |
|
Methods inherited from class org.logicalcobwebs.proxool.util.AbstractListenerContainer | |
addListener, getListeners, isEmpty, removeListener | |
public void onBirth(Connection connection)
throws SQLException
- Specified by:
- onBirth in interface ConnectionListenerIF
public void onDeath(Connection connection,
int reasonCode)
throws SQLException
- Specified by:
- onDeath in interface ConnectionListenerIF
- See Also:
ConnectionListenerIF.onDeath(java.sql.Connection, int)
public void onExecute(String command,
long elapsedTime)
- Specified by:
- onExecute in interface ConnectionListenerIF
public void onFail(String command,
Exception exception)
- Specified by:
- onFail in interface ConnectionListenerIF