org.apache.geronimo.concurrent.impl.thread
class: GeronimoManagedThreadFactory.HungTaskMonitor [javadoc |
source]
java.lang.Object
org.apache.geronimo.concurrent.impl.thread.GeronimoManagedThreadFactory$HungTaskMonitor
All Implemented Interfaces:
Runnable
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from org.apache.geronimo.concurrent.impl.thread.GeronimoManagedThreadFactory$HungTaskMonitor Detail: |
public long getFrequency() {
return frequency;
}
|
public void run() {
while (!done) {
try {
Thread.sleep(frequency);
} catch (InterruptedException e) {
break;
}
updateStatus();
}
}
|
public void setFrequency(long newFrequency) {
frequency = newFrequency;
}
|
public void stop() {
done = true;
}
|