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.

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.

Constructor Details

Timer

public Timer()
Constructs a Timer instance.

Method Details

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.

Parameters:
task - The task to be executed.
delay - Delay in ms before executing the task.


Copyright B) 2004 Scalagent - All rights reserved