public interface ClusteredJob
ClusteredJobDao.
Although the description given here assumes a single table with one row per scheduler entry, the
application is free to normalize the schema as desired, so long as it is still able to guarantee
the atomicity of the operations defined by the ClusteredJobDao. There is an implementation
of this interface available as ImmutableClusteredJob.
| Field | Type | Size/Resolution | Comment |
|---|---|---|---|
| JobId | text | 255 | Use JobId.of(String) and JobId.toString()
to convert to and from storage |
| JobRunnerKey | text | 255 | Use JobRunnerKey.of(String) and
JobRunnerKey.toString() to convert to and from storage |
| Interval | numeric | Millis | NULL for cron expression schedules. |
| Cron Expression | text | 120 | NULL for interval schedules. |
| Time Zone | text | 80 | NULL for interval schedules. |
| Next Run Time | date/time | Millis | NULL when the job is not
expected to run anymore due to its schedule rules |
| Version | numeric | long | Used for optimistic locking strategy |
| Parameters | blob | unspecified | NULL when the job has no parameters |
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.scheduler.config.JobId |
getJobId() |
com.atlassian.scheduler.config.JobRunnerKey |
getJobRunnerKey() |
Date |
getNextRunTime() |
byte[] |
getRawParameters() |
com.atlassian.scheduler.config.Schedule |
getSchedule() |
long |
getVersion() |
@Nonnull com.atlassian.scheduler.config.JobId getJobId()
@Nonnull com.atlassian.scheduler.config.JobRunnerKey getJobRunnerKey()
@Nonnull com.atlassian.scheduler.config.Schedule getSchedule()
long getVersion()
@Nullable byte[] getRawParameters()
Copyright © 2019 Atlassian. All rights reserved.