public static interface JobBuilder.ScheduleBuilder
Modifier and Type | Method and Description |
---|---|
ScheduledJobInfo |
add()
Finally add the job to the schedule
|
ScheduledJobInfo |
add(java.util.List<java.lang.String> errors)
Finally add the job to the schedule
|
JobBuilder.ScheduleBuilder |
at(java.util.Date date)
Schedule the job for a specific date.
|
JobBuilder.ScheduleBuilder |
cron(java.lang.String expression)
Schedule the job for according to the cron expression.
|
JobBuilder.ScheduleBuilder |
daily(int hour,
int minute)
Schedule the job daily at the given time.
|
JobBuilder.ScheduleBuilder |
hourly(int minute)
Schedule the job hourly at the given minute.
|
JobBuilder.ScheduleBuilder |
monthly(int day,
int hour,
int minute)
Schedule the job monthly, the time needs to be specified in addition.
|
JobBuilder.ScheduleBuilder |
suspend()
Suspend this scheduling by default.
|
JobBuilder.ScheduleBuilder |
weekly(int day,
int hour,
int minute)
Schedule the job weekly, the time needs to be specified in addition.
|
JobBuilder.ScheduleBuilder |
yearly(int month,
int day,
int hour,
int minute)
Schedule the job yearly, the time needs to be specified in addition.
|
JobBuilder.ScheduleBuilder suspend()
JobBuilder.ScheduleBuilder hourly(int minute)
minute
- Between 0 and 59.JobBuilder.ScheduleBuilder daily(int hour, int minute)
hour
- Hour of the day ranging from 0 to 23.minute
- Minute of the hour ranging from 0 to 59.JobBuilder.ScheduleBuilder weekly(int day, int hour, int minute)
day
- Day of the week, 1:Sunday, 2:Monday, ... 7:Saturday.hour
- Hour of the day ranging from 0 to 23.minute
- Minute of the hour ranging from 0 to 59.JobBuilder.ScheduleBuilder monthly(int day, int hour, int minute)
day
- Day of the month from 1 to 28.hour
- Hour of the day ranging from 0 to 23.minute
- Minute of the hour ranging from 0 to 59.JobBuilder.ScheduleBuilder yearly(int month, int day, int hour, int minute)
month
- Month of the year from 1 to 12.day
- Day of the month from 1 to 28.hour
- Hour of the day ranging from 0 to 23.minute
- Minute of the hour ranging from 0 to 59.JobBuilder.ScheduleBuilder at(java.util.Date date)
date
- The dateJobBuilder.ScheduleBuilder cron(java.lang.String expression)
expression
- The cron expressionScheduledJobInfo add()
null
otherwise.ScheduledJobInfo add(java.util.List<java.lang.String> errors)
errors
- Optional list which will be filled with error messages.null
otherwise.Copyright © 2010 - 2020 Adobe. All Rights Reserved