|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StoppableTimerTask
When a StoppableTimerTask is passed to TimerUtil.schedule(), TimerUtil will keep track of it so that it can call StoppableTimerTask.stop() during TimerUtil.destroy(). Note that when a StoppableTimerTask is done, it should call TimerTask.unschedule(this) so that the reference to it is removed. Note that there is a danger of an infinite loop because if StoppableTimerTask.stop() calls TimerTask.unschedule(this), the TimerTask.unschedule(this) will call this.StoppableTimerTask(). It follows that StoppableTimerTask.stop() should guard against this danger.
Copyright Jan 18, 2007
Method Summary | |
---|---|
void |
stop()
stop() will be called when TimerUtil.unschedule() or when TimerUtil.destroy() are called. |
Method Detail |
---|
void stop() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |