public class TimerScheduler extends Object implements Scheduler
Timer
as internal task scheduler.
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 © 2017. All Rights Reserved.