public interface ConnectionEventListener extends java.util.EventListener
You can use a ConnectionEventListener when you want to be notified of events generated by a PooledConnection. ConnectionEventListener is usually implemented by connection pooling services provided in application servers, for example.
connectionClosed
public void connectionClosed(ConnectionEvent event)
This method is called when a connection obtained from a pool is closed and when it can be returned to the pool.
Parameters:
event: | The source of the event |
connectionErrorOccurred
public void connectionErrorOccurred(ConnectionEvent event)
This method is called when an error occurs. A SQLException specified as a constructor parameter is thrown just after calling this method.
Parameters:
event: | The source of the event |