Interface ConnectionLeakListener

  • All Known Implementing Classes:
    AssocWithThreadResourcePool, ConnectionPool, UnpooledResource

    public interface ConnectionLeakListener
    Leak listener that will be used by ConnectionLeakDetector to intimate the listeners during connection leaks and to print-leak-stack-trace, reclaim leaked connection.
    Author:
    Jagadish Ramu
    • Method Detail

      • potentialConnectionLeakFound

        void potentialConnectionLeakFound()
        listener method to handle in the event of connection leak detected
      • printConnectionLeakTrace

        void printConnectionLeakTrace​(StringBuilder stackTrace)
        to print the stack trace of the caller of getConnection
        Parameters:
        stackTrace - Stack trace of the caller
      • reclaimConnection

        void reclaimConnection​(ResourceHandle handle)
        reclaim the leaked connection
        Parameters:
        handle - Resource to be reclaimed