public class TimerScheduler extends Object implements Scheduler
Timer
as internal task scheduler.
This scheduler should be used only for compatibility reason (this was the very first kind of scheduler
available), instead instance of DefaultScheduler
should
be used.Constructor and Description |
---|
TimerScheduler(String name,
long delay)
Create scheduler.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
void |
start(Runnable runnable)
Schedule task.
|
void |
stop()
Stop pending task.
|
public TimerScheduler(String name, long delay)
name
- Thread name.delay
- Delay before task execution.IllegalArgumentException
- If delay
is not strictly positive.public void start(Runnable runnable)
Scheduler
public void stop()
Scheduler
Copyright © 2016. All Rights Reserved.