|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.TimerTask
org.clazzes.util.thread.ThreadTimer
public class ThreadTimer
Timer
It invokes run()
, which starts the Thread.Constructor Summary | |
---|---|
ThreadTimer(TimedThread thread)
contructes the object and sets the thread to run |
Method Summary | |
---|---|
boolean |
isToBeFinished()
|
void |
requestStop()
|
void |
run()
|
void |
waitToBeFinished()
|
Methods inherited from class java.util.TimerTask |
---|
cancel, scheduledExecutionTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreadTimer(TimedThread thread)
thread
- Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.util.TimerTask
public void requestStop()
public boolean isToBeFinished()
public void waitToBeFinished() throws java.lang.InterruptedException
java.lang.InterruptedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |