public class LongRunningStatementMonitor
extends java.lang.Thread
ViewObject.setQueryTimeOut(int), 
 Users can create their own LongRunningStatementHandle
 and add it to the monitor using the monitor API.
 
, 
| Constructor and Description | 
|---|
LongRunningStatementMonitor()
Creates a new  
LongRunningStatementMonitor thread. | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
finalize()
Stop the thread gracefully. 
 | 
void | 
monitor(LongRunningStatementHandle handle)
Adds the handle to the monitored list. 
 | 
void | 
run()
The Thread begins with a loop to iterate over the monitored 
 list of handles and invokes the  
cancel on
 expired ones. | 
void | 
stopGracefully()
Terminates the thread gracefully. 
 | 
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic LongRunningStatementMonitor()
LongRunningStatementMonitor thread.public void monitor(LongRunningStatementHandle handle)
handle - a LongRunningStatementHandlepublic void run()
cancel on
 expired ones. Between each iteration the thread sleeps for
 a second. To terminate the thread use the 
 stopGracefully method. Since the
 thread is a Daemon thread it should not obstruct the shutdown
 of the JVMrun in interface java.lang.Runnablerun in class java.lang.Threadpublic void stopGracefully()
protected void finalize()
                 throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable