Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.logicalcobwebs.proxool.util.AbstractListenerContainer
org.logicalcobwebs.proxool.CompositeConnectionListener
public class CompositeConnectionListener
extends AbstractListenerContainer
implements ConnectionListenerIF
ConnectionListenerIF
that keeps a list of ConnectionListenerIF
s
and notifies them in a thread safe manner.
It also implements ListenerContainerIF
which provides methods for
adding
and
removing
listeners.
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) throws SQLException
- Specified by:
- onDeath in interface ConnectionListenerIF
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