以编程方式更新基于表的 Quartz Scheduler

发布于 2024-09-27 14:35:35 字数 91 浏览 3 评论 0原文

在我的一个使用基于 jdbc 的 Quartz 调度程序的 Java 项目中,我需要经常更新预配置作业的调度。即使用 JobID 作为句柄我想更新表中的计划。这可能吗?

In one of my Java projects with jdbc-based Quartz scheduler I am in need to update the schedule of a preconfigured job frequently. i.e. using the JobID as the handle I would like to update the schedule in the tables. Is this possible?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

燃情 2024-10-04 14:35:35

我不推荐这种方法,我认为最好使用 QuartzScheduler 对象中专用于此的方法重新安排作业。

查看 rescheduleJob :

http:// www.quartz-scheduler.org/docs/api/1.8.1/org/quartz/core/QuartzScheduler.html

I don't recommend this approach, I think it's better to reSchedule job using the method dedicated to this in QuartzScheduler object.

Look at rescheduleJob in:

http://www.quartz-scheduler.org/docs/api/1.8.1/org/quartz/core/QuartzScheduler.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文