Package org.nuxeo.ecm.core.scheduler
Interface EventJobFactory
- All Known Implementing Classes:
DefaultEventJobFactory
public interface EventJobFactory
Factory instantiating the
Job
and the Trigger
of a scheduled event.- Since:
- 10.2
-
Method Summary
Modifier and TypeMethodDescriptionorg.quartz.JobBuilder
buildJob
(Schedule schedule, Map<String, Serializable> parameters) Builds the job of the scheduled event.org.quartz.ScheduleBuilder<?>
buildSchedule
(Schedule schedule) Builds the schedule of the trigger (used bybuildTrigger(Schedule)
).org.quartz.TriggerBuilder<?>
buildTrigger
(Schedule schedule) Builds the trigger of the scheduled event.
-
Method Details
-
buildJob
Builds the job of the scheduled event.Returns a builder to allow extensibility.
- Parameters:
schedule
- Scheduled event contribution.parameters
- Job parameters (might benull
).- Returns:
- An instance of
JobBuilder
.
-
buildTrigger
Builds the trigger of the scheduled event.Returns a builder to allow extensibility.
- Parameters:
schedule
- Scheduled event contribution.- Returns:
- An instance of
TriggerBuilder
.
-
buildSchedule
Builds the schedule of the trigger (used bybuildTrigger(Schedule)
).Returns a builder to allow extensibility.
- Parameters:
schedule
- Scheduled event contribution.- Returns:
- An instance of
ScheduleBuilder
.
-