java.lang.Object | |
↳ | org.apache.onami.scheduler.JobSchedulerBuilder |
DSL to produce Job
and add to a Scheduler
,
and associate the related Trigger
with it.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add the produced
Job to the given Scheduler ,
and associate the related Trigger with it. | |||||||||||
Requests an existing trigger (sharing the same key as the new trigger) for this job to
be replaced with the new trigger.
| |||||||||||
Sets the cron expression to base the schedule on.
| |||||||||||
Sets the
Job group. | |||||||||||
Sets the
Job name, must be unique within the group. | |||||||||||
Sets the
Trigger 's priority. | |||||||||||
Instructs the
Scheduler whether or not the Job should
be re-executed if a recovery or fail-over situation is
encountered. | |||||||||||
Whether or not the
Job should remain stored after it is
orphaned (no Trigger s point to it). | |||||||||||
Sets the time zone for which the
cronExpression of this
CronTrigger will be resolved. | |||||||||||
Sets the
Trigger that will be used to schedule
the Job . | |||||||||||
Sets the
Trigger group. | |||||||||||
Sets the
Trigger name, must be unique within the group. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Add the produced Job
to the given Scheduler
,
and associate the related Trigger
with it.
Users MUST NOT use this method!
scheduler | The given Scheduler |
---|
Exception | If any error occurs |
---|
Requests an existing trigger (sharing the same key as the new trigger) for this job to be replaced with the new trigger.
Sets the cron expression to base the schedule on.
cronExpression | The cron expression to base the schedule on |
---|
Sets the Job
group.
jobGroup | The Job group |
---|
Sets the Job
name, must be unique within the group.
jobName | The Job name, must be unique within the group |
---|
Sets the Trigger
's priority. When more than one Trigger
have the same
fire time, the scheduler will fire the one with the highest priority
first.
priority | The Trigger 's priority |
---|
Instructs the Scheduler
whether or not the Job
should
be re-executed if a recovery
or fail-over
situation is
encountered.
requestRecovery | The activation flag |
---|
Whether or not the Job
should remain stored after it is
orphaned (no Trigger
s point to it).
storeDurably | The activation flag |
---|
Sets the time zone for which the cronExpression
of this
CronTrigger
will be resolved.
timeZone | The time zone for which the cronExpression
of this CronTrigger will be resolved. |
---|
Sets the Trigger
that will be used to schedule
the Job
.
Be aware that using using this method will override any other
Trigger
-related operation, like withTriggerGroup(String)
or withTimeZone(TimeZone)
trigger | The Trigger to associate with the Job |
---|
Sets the Trigger
group.
triggerGroup | The Trigger group |
---|
Sets the Trigger
name, must be unique within the group.
triggerName | The Trigger name, must be unique within the group |
---|