public interface ConnectionEventListener extends EventListener
This interface would typically be implemented by a component which manages a
connection pool (a connection pool manager). A connection triggers an event
ConnectionEventListener either when the application closes a
connection it has been using or when a significant error occurs while the
connection is being used.
The connection pool manager can return closed connections to the pool for later reuse. Connections experiencing an error should be discarded.
|Modifier and Type||Method and Description|
void connectionClosed(ConnectionEvent theEvent)
ConnectionEventListenerthat an application has called the
closemethod on a pooled connection.
ConnectionEventcontaining details about the source of the event.
void connectionErrorOccurred(ConnectionEvent theEvent)
ConnectionEventListenerthat an error has occurred on a
PooledConnection. This notification is triggered before the
SQLException, which is available through the event argument, is thrown.
ConnectionEventcontaining details about the source of the event and the
SQLExceptionthat has occurred.