Class AbstractScheduledJob
java.lang.Object
com.atlassian.confluence.schedule.AbstractScheduledJob
- All Implemented Interfaces:
ScheduledJob
- Direct Known Subclasses:
ScheduledCronJob,ScheduledSimpleJob
- Since:
- 5.10
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractScheduledJob(com.atlassian.scheduler.JobRunner jobRunner, com.atlassian.scheduler.config.JobConfig jobConfig, boolean clusteredOnly) -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.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 ofScheduledJob.getJobConfig().inthashCode()booleanJobs that are only meaningful in clustered environment won't be scheduled in non-clustered environments.toString()
-
Constructor Details
-
AbstractScheduledJob
protected AbstractScheduledJob(com.atlassian.scheduler.JobRunner jobRunner, com.atlassian.scheduler.config.JobConfig jobConfig, boolean clusteredOnly)
-
-
Method Details
-
getJobRunner
public com.atlassian.scheduler.JobRunner getJobRunner()Description copied from interface:ScheduledJobTheJobRunnerKeyto register theJobRunnerresult of this method should be taken from the result ofScheduledJob.getJobConfig().- Specified by:
getJobRunnerin interfaceScheduledJob
-
getJobConfig
public com.atlassian.scheduler.config.JobConfig getJobConfig()Description copied from interface:ScheduledJobWhen scheduling the job,ScheduleUtil.withTimeZone(JobConfig, TimeZone)may be used to set the time zone in case the job is cron based.- Specified by:
getJobConfigin interfaceScheduledJob
-
isClusteredOnly
public boolean isClusteredOnly()Description copied from interface:ScheduledJobJobs that are only meaningful in clustered environment won't be scheduled in non-clustered environments.- Specified by:
isClusteredOnlyin interfaceScheduledJob
-
toString
-
equals
-
hashCode
public int hashCode()
-