Class TimerScheduler
java.lang.Object
com.thebuzzmedia.exiftool.core.schedulers.TimerScheduler
- All Implemented Interfaces:
Scheduler
Scheduler using
This scheduler should be used only for compatibility reason (this was the very first kind of scheduler available), instead instance of
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
TimerScheduler
Create scheduler.- Parameters:
name
- Thread name.delay
- Delay before task execution.- Throws:
IllegalArgumentException
- Ifdelay
is not strictly positive.
-
-
Method Details
-
start
Description copied from interface:Scheduler
Schedule task.
Task should not run immediately, instead it should run in a specified amount of time (implementation dependent). -
stop
public void stop()Description copied from interface:Scheduler
Stop pending task. -
shutdown
public void shutdown()Description copied from interface:Scheduler
Shutdown scheduler: once done, the scheduler will not be usable anymore.
-