|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.logicalcobwebs.proxool.ConnectionListenerTest.TestConnectionListener
Constructor Summary | |
(package private) |
ConnectionListenerTest.TestConnectionListener()
|
Method Summary | |
void |
onBirth(java.sql.Connection connection)
Happens everytime we create a new connection. |
void |
onDeath(java.sql.Connection connection)
Happens just before we expire a connection. |
void |
onExecute(java.lang.String command,
long elapsedTime)
Happens after every successful execute. |
void |
onFail(java.lang.String command,
java.lang.Exception exception)
Happens everytime an exception was thrown during an execute method Note that the command is not fully implemented at this stage. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
ConnectionListenerTest.TestConnectionListener()
Method Detail |
public void onBirth(java.sql.Connection connection) throws java.sql.SQLException
ConnectionListenerIF
onBirth
in interface ConnectionListenerIF
connection
- the connection that has just been created
java.sql.SQLException
- if anything goes wrong (which will then be logged but ignored)public void onDeath(java.sql.Connection connection) throws java.sql.SQLException
ConnectionListenerIF
onDeath
in interface ConnectionListenerIF
connection
- the connection that is about to expire
java.sql.SQLException
- if anything goes wrong (which will then be logged but ignored)public void onExecute(java.lang.String command, long elapsedTime)
ConnectionListenerIF
onExecute
in interface ConnectionListenerIF
command
- what command was being executedelapsedTime
- how long the call took (in milliseconds)public void onFail(java.lang.String command, java.lang.Exception exception)
ConnectionListenerIF
onFail
in interface ConnectionListenerIF
command
- what command was being executedexception
- what exception was thrown
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |