|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jmx4odp.j4oNet.AutoStartThread
public abstract class AutoStartThread
This object starts an internal thread upon creation. This thread will wake up and call doCycle, then sleep for getThreadSleepCount ms. Stop stops the while loop running in the thread and then nulls out the internal thread, thus freeing any resources.
| Constructor Summary | |
|---|---|
AutoStartThread()
creates an internal thread, calls initThread, and then starts the thread in a a while(true) loop. |
|
| Method Summary | |
|---|---|
abstract void |
doCycle()
This is overridden by the extending class. |
int |
getThreadSleepCount()
Get the number of ms the while loop sleeps between cycles. |
void |
setThreadSleepCount(int i)
Set the number of ms the while loop sleeps between cycles. |
void |
stopWork()
Stops the while(true) in the internal thread, then nulls out the reference to the internak thread. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AutoStartThread()
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public void stopWork()
public int getThreadSleepCount()
public void setThreadSleepCount(int i)
public abstract void doCycle()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||