-
public interface CronJobOne task that is performed on a routine basis.- Author:
- AO Industries, Inc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCronJob.ExecutorThe various executors that may be selected to run this job.static classCronJob.ScheduleModeThe set of possible concurrency settings for cron jobs.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CronJob.ExecutorgetExecutor()Gets the executor that should be used for this job.default StringgetName()Gets the name for this cron job.SchedulegetSchedule()Gets the schedule for this cron job.default CronJob.ScheduleModegetScheduleMode()Gets the job scheduling mode.default intgetThreadPriority()Gets the Thread priority for this job.voidrun(int minute, int hour, int dayOfMonth, int month, int dayOfWeek, int year)Performs the scheduled task.
-
-
-
Method Detail
-
getName
default String getName()
Gets the name for this cron job.Defaults to
getClass()..getName()
-
getSchedule
Schedule getSchedule()
Gets the schedule for this cron job. This is called once per minute for each job.
-
getScheduleMode
default CronJob.ScheduleMode getScheduleMode()
Gets the job scheduling mode.Defaults to
CronJob.ScheduleMode.SKIP.- See Also:
CronJob.ScheduleMode
-
getExecutor
default CronJob.Executor getExecutor()
Gets the executor that should be used for this job.Defaults to
CronJob.Executor.UNBOUNDED.
-
getThreadPriority
default int getThreadPriority()
Gets the Thread priority for this job.Defaults to
Thread.NORM_PRIORITY.- See Also:
Thread.setPriority(int)
-
run
void run(int minute, int hour, int dayOfMonth, int month, int dayOfWeek, int year)Performs the scheduled task.
-
-