|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.dyade.aaa.util.Timer
This class is a facility for scheduling tasks future execution.
It is a simplified version of the timer provided by the jdk1.3.
| Constructor Summary | |
Timer()
Constructs a Timer instance. |
|
| Method Summary | |
void |
cancel()
Cancels the timer and all its non executed tasks. |
void |
schedule(TimerTask task,
long delay)
Schedules a given task for execution after a given delay. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Timer()
Timer instance.
| Method Detail |
public void schedule(TimerTask task,
long delay)
throws java.lang.Exception
task - The task to be executed.delay - Delay in ms before executing the task.
java.lang.IllegalStateException - If the timer or the task have already
been cancelled, or if the task is already scheduled.
java.lang.IllegalArgumentException - If the delay is negative.
java.lang.Exceptionpublic void cancel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||