fr.dyade.aaa.util
Class Timer
public class Timer
extends java.lang.Object
This class is a facility for scheduling tasks future execution.
It is a simplified version of the timer provided by the jdk1.3.
Timer() - Constructs a
Timer instance.
|
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.
|
Timer
public Timer()
Constructs a Timer
instance.
cancel
public void cancel()
Cancels the timer and all its non executed tasks.
schedule
public void schedule(TimerTask task,
long delay)
throws Exception
Schedules a given task for execution after a given delay.
task
- The task to be executed.delay
- Delay in ms before executing the task.
Copyright B) 2004 Scalagent - All rights reserved