public class DefaultScheduler extends java.lang.Object implements Scheduler
exiftool
Scheduler
.
Constructor and Description |
---|
DefaultScheduler(long delay)
Deprecated.
Use
DefaultScheduler(SchedulerDuration) instead. |
DefaultScheduler(long delay,
java.util.concurrent.TimeUnit timeUnit)
Deprecated.
Use
DefaultScheduler(SchedulerDuration) instead. |
DefaultScheduler(SchedulerDuration executionDelay)
Create new scheduler.
|
DefaultScheduler(SchedulerDuration executionDelay,
SchedulerDuration terminationDelay)
Create new scheduler.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
void |
shutdown()
Shutdown scheduler: once done, the scheduler will not be usable
anymore.
|
void |
start(java.lang.Runnable runnable)
Schedule task.
|
void |
stop()
Stop pending task.
|
@Deprecated public DefaultScheduler(long delay)
DefaultScheduler(SchedulerDuration)
instead.TimeUnit.MILLISECONDS
.
A default withExecutor will be created.delay
- Delay.java.lang.IllegalArgumentException
- If delay
is less than or equal to zero.@Deprecated public DefaultScheduler(long delay, java.util.concurrent.TimeUnit timeUnit)
DefaultScheduler(SchedulerDuration)
instead.delay
- Delay.timeUnit
- Time Unit.java.lang.NullPointerException
- If timeUnit
is null
.java.lang.IllegalArgumentException
- If delay
is less than or equal to zero.public DefaultScheduler(SchedulerDuration executionDelay)
TimeUnit.MILLISECONDS
.
A default withExecutor will be created.executionDelay
- The delay between execution.java.lang.IllegalArgumentException
- If delay
is less than or equal to zero.public DefaultScheduler(SchedulerDuration executionDelay, SchedulerDuration terminationDelay)
executionDelay
- The delay between scheduler execution.terminationDelay
- The delay to use to wait for termination when scheduler is shutting down.java.lang.NullPointerException
- If timeUnit
is null
.java.lang.IllegalArgumentException
- If delay
is less than or equal to zero.public void start(java.lang.Runnable runnable)
Scheduler
public void stop()
Scheduler
public void shutdown()
Scheduler
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
Copyright © 2018. All Rights Reserved.