Package com.sun.enterprise.resource.pool
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
potentialConnectionLeakFound()
listener method to handle in the event of connection leak detectedvoid
printConnectionLeakTrace(StringBuilder stackTrace)
to print the stack trace of the caller of getConnectionvoid
reclaimConnection(ResourceHandle handle)
reclaim the leaked connection
-
-
-
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
-
-