abstractpublic class TimerTask implements Runnable(Code)
The TimerTask class is represents a task to run at specified time. The task
may be run once or repeatedly.
See Also:Timer See Also:java.lang.Object.wait(long)
Cancels the Task and removes it from the Timer's queue. Generally, it
returns false if the call did not prevent a TimerTask from running at
least once. Subsequent calls have no effect.
true if the call prevented a scheduled executionfrom taking place, false otherwise.
Returns the scheduled execution time. If the task execution is in
progress returns the execution time of ongoing task. Tasks which have not
yet run return an undefined value.
the most recent execution time.