Interface IScheduleBuilder
- All Known Implementing Classes:
DefaultScheduleBuilder
public interface IScheduleBuilder
The schedule builder used to create job execution schedules using a fluent API. The
ISchedule
implementations
returned are specific to the IScheduler
in use.
An instance of IScheduleBuilder
may be obtained using IScheduler.getScheduleBuilder()
.
Note: The IScheduleBuilder
and ISchedule
objects obtained from a specific IScheduler
implementation cannot be used with another IScheduler
implementation.- Since:
- 11.0
- Author:
- Petru Galanton
-
Method Summary
-
Method Details
-
onDate
Creates a schedule which executes the associated job at the specified date- Parameters:
date
- The date when the job should execute- Returns:
- the schedule
- Throws:
IllegalArgumentException
- if the date sent as parameter is null
-
now
ISchedule now()Creates a schedule which executes the associated job now- Returns:
- the schedule
-