|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jolbox.bonecp.CloseThreadMonitor
public class CloseThreadMonitor
Thread that monitors another thread and displays stack trace if getConnection() was called without the corresponding close(). For debug purposes only.
| Constructor Summary | |
|---|---|
CloseThreadMonitor(java.lang.Thread threadToMonitor,
ConnectionHandle connectionHandle,
java.lang.String stackTrace,
long closeConnectionWatchTimeout)
|
|
| Method Summary | |
|---|---|
void |
run()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CloseThreadMonitor(java.lang.Thread threadToMonitor,
ConnectionHandle connectionHandle,
java.lang.String stackTrace,
long closeConnectionWatchTimeout)
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| Method Detail |
|---|
public void run()
run in interface java.lang.RunnableRunnable.run()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||