Interface LeakHunter
-
- All Known Implementing Classes:
AbstractLeakHunter,MsSqlLeakHunter
public interface LeakHunterCreated by pestano on 07/09/16. based on https://vladmihalcea.com/2016/07/12/the-best-way-to-detect-database-connection-leaks/
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheckConnectionsAfterExecution()Check number of opened jdbc connections/sessionsintmeasureConnectionsBeforeExecution()intopenConnections()
-
-
-
Method Detail
-
openConnections
int openConnections()
- Returns:
- number of opened jdbc connections/sessions
-
measureConnectionsBeforeExecution
int measureConnectionsBeforeExecution()
- Returns:
- number of opened jdbc connections/sessions
-
checkConnectionsAfterExecution
void checkConnectionsAfterExecution() throws LeakHunterExceptionCheck number of opened jdbc connections/sessions- Throws:
LeakHunterException- if the number of connections is greater than before execution
-
-