public class DefaultScheduler extends Object implements Scheduler
exiftool
Scheduler
.
Constructor and Description |
---|
DefaultScheduler(long delay)
Create new scheduler.
|
DefaultScheduler(long delay,
TimeUnit timeUnit)
Create new scheduler.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
void |
start(Runnable runnable)
Schedule task.
|
void |
stop()
Stop pending task.
|
public DefaultScheduler(long delay)
TimeUnit.MILLISECONDS
.
A default withExecutor will be created.delay
- Delay.IllegalArgumentException
- If delay
is less than or equal to zero.public DefaultScheduler(long delay, TimeUnit timeUnit)
delay
- Delay.timeUnit
- Time Unit.NullPointerException
- If timeUnit
is null
.IllegalArgumentException
- If delay
is less than or equal to zero.public void start(Runnable runnable)
Scheduler
public void stop()
Scheduler
Copyright © 2016. All Rights Reserved.