public static interface JobBuilder.ScheduleBuilder
Modifier and Type | Method and Description |
---|---|
ScheduledJobInfo |
add()
Finally add the job to the schedule
|
ScheduledJobInfo |
add(List<String> errors)
Finally add the job to the schedule
|
JobBuilder.ScheduleBuilder |
at(Date date)
Schedule the job for a specific date.
|
JobBuilder.ScheduleBuilder |
cron(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(Date date)
date
- The dateJobBuilder.ScheduleBuilder cron(String expression)
expression
- The cron expressionScheduledJobInfo add()
null
otherwise.ScheduledJobInfo add(List<String> errors)
errors
- Optional list which will be filled with error messages.null
otherwise.Copyright © 2015 The Apache Software Foundation. All rights reserved.