com.github.database.rider.core.api.leak

Interface LeakHunter

  • All Known Implementing Classes:
    AbstractLeakHunter, MsSqlLeakHunter


    public interface LeakHunter
    Created by pestano on 07/09/16. based on https://vladmihalcea.com/2016/07/12/the-best-way-to-detect-database-connection-leaks/
    • 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 LeakHunterException
        Check number of opened jdbc connections/sessions
        Throws:
        LeakHunterException - if the number of connections is greater than before execution

Copyright © 2019. All rights reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14