| Package | Description |
|---|---|
| com.atlassian.scheduler |
Major component interfaces and supporting classes for the atlassian-scheduler API.
|
| com.atlassian.scheduler.config |
API classes related to the configuration of scheduled jobs.
|
| com.atlassian.scheduler.status |
API classes related to the current status of a job or the results of running one.
|
| Modifier and Type | Method and Description |
|---|---|
Date |
SchedulerService.calculateNextRunTime(Schedule schedule)
Returns the next time that a job with the given schedule would be expected to run.
|
| Modifier and Type | Method and Description |
|---|---|
static Schedule |
Schedule.forCronExpression(String cronExpression)
Creates a new schedule for the given cron expression.
|
static Schedule |
Schedule.forCronExpression(String cronExpression,
TimeZone timeZone)
Creates a new schedule for the given cron expression.
|
static Schedule |
Schedule.forInterval(long intervalInMillis,
Date firstRunTime)
Creates a new schedule that will run periodically with the given interval.
|
Schedule |
JobConfig.getSchedule() |
static Schedule |
Schedule.runOnce(Date runTime)
Creates a new schedule that will run once at the specified time.
|
| Modifier and Type | Method and Description |
|---|---|
JobConfig |
JobConfig.withSchedule(Schedule schedule)
Returns a copy of this job config that will use the specified schedule
instead of what it currently uses.
|
| Modifier and Type | Method and Description |
|---|---|
Schedule |
JobDetails.getSchedule()
Returns the schedule that the Job will run under.
|
Copyright © 2017 Atlassian. All rights reserved.