com.jolbox.bonecp
Class CloseThreadMonitor
java.lang.Object
com.jolbox.bonecp.CloseThreadMonitor
- All Implemented Interfaces:
- Runnable
public class CloseThreadMonitor
- extends Object
- implements Runnable
Thread that monitors another thread and displays stack trace if getConnection() was called without the corresponding close().
For debug purposes only.
- Author:
- Wallace
|
Method Summary |
void |
run()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CloseThreadMonitor
public CloseThreadMonitor(Thread threadToMonitor,
ConnectionHandle connectionHandle,
String stackTrace,
long closeConnectionWatchTimeout)
- Parameters:
threadToMonitor - Thread to wait for terminationconnectionHandle - connection handle that we are monitoringstackTrace - where the getConnection() request started off.closeConnectionWatchTimeout - no of ms to wait in thread.join(). 0 = wait forever
run
public void run()
-
- Specified by:
run in interface Runnable
- See Also:
Runnable.run()
Copyright © 2009-2011 JolBox. All Rights Reserved.