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