Interface ScheduledJob
- All Known Subinterfaces:
- ManagedScheduledJob
- All Known Implementing Classes:
- AbstractManagedScheduledJob,- AbstractScheduledJob,- ManagedScheduledCronJob,- ManagedScheduledSimpleJob,- ScheduledCronJob,- ScheduledSimpleJob
public interface ScheduledJob
This is intended to be the interface for setting atlassian-scheduler jobs
 from Spring. See 
ScheduledCronJob and ScheduledSimpleJob.- Since:
- 5.10
- 
Method SummaryModifier and TypeMethodDescriptioncom.atlassian.scheduler.config.JobConfigWhen scheduling the job,ScheduleUtil.withTimeZone(JobConfig, TimeZone)may be used to set the time zone in case the job is cron based.com.atlassian.scheduler.JobRunnerTheJobRunnerKeyto register theJobRunnerresult of this method should be taken from the result ofgetJobConfig().booleanJobs that are only meaningful in clustered environment won't be scheduled in non-clustered environments.static com.atlassian.scheduler.config.JobIdsameJobId(ScheduledJob job) Utility to getJobIdfor the job, the same as theJobRunnerKeyin theJobConfig.
- 
Method Details- 
getJobRunnercom.atlassian.scheduler.JobRunner getJobRunner()TheJobRunnerKeyto register theJobRunnerresult of this method should be taken from the result ofgetJobConfig().
- 
getJobConfigcom.atlassian.scheduler.config.JobConfig getJobConfig()When scheduling the job,ScheduleUtil.withTimeZone(JobConfig, TimeZone)may be used to set the time zone in case the job is cron based.
- 
isClusteredOnlyboolean isClusteredOnly()Jobs that are only meaningful in clustered environment won't be scheduled in non-clustered environments.
- 
sameJobIdUtility to getJobIdfor the job, the same as theJobRunnerKeyin theJobConfig.
 
-