Add multiple triggers to single quartz job

前端 未结 3 1478
无人及你
无人及你 2021-02-05 16:06

I want to dynamically add triggers to a job, but can\'t find any helpful methods off of Scheduler

I though i would just be able to call the scheduleJob method an repetit

3条回答
  •  忘了有多久
    2021-02-05 16:52

    You can call scheduleJob repeatedly. Just make sure that you give each Trigger a unique name/group.

    See TriggerBuilder.withIdentity: http://www.quartz-scheduler.org/docs/api/2.0.0/index.html

提交回复
热议问题