10.4.2 addConnectionEventListener(ConnectionEventListener listener)
- Organization of this subsection
(1) Function
This method registers an event listener so that events that occur in this PooledConnection object will be reported.
No other methods can be called from the event listener that is registered by this method. Deadlock might result if an attempt is made to call another method, resulting in a loss of response.
(2) Format
public synchronized void addConnectionEventListener(ConnectionEventListener listener)
(3) Arguments
- ConnectionEventListener listener
-
Specifies a component that implements the ConnectionEventListener interface, so that if the connection is closed or an error occurs, that event will be reported. Normally, this is a connection pool management program.
If null is specified, nothing is registered.
(4) Return value
None.
(5) Exceptions
None.