简体   繁体   English

石英调度程序是否删除触发器?

[英]Does the quartz scheduler delete triggers?

I basically want to know, if the scheduler itself deletes triggers after they have fired if there are not any other points in time where they would ever fire again?我基本上想知道,如果没有任何其他时间点可以再次触发,调度程序本身是否会在触发后删除触发器? I need to know this so that I know how to tidy up after a job has been executed.我需要知道这一点,以便我知道如何在执行完工作后进行整理。

I have already read through many posts about triggers and jobs.我已经阅读了许多关于触发器和作业的帖子。 I have also read through all the official quartz lessons.我也通读了所有官方石英课程。 Only thing I found out there was that jobs can be deleted if you set their property "durable" to false when there are no more triggers pointing to it.. That is also how my question came up on how or when the scheduler deletes its triggers我发现的唯一一件事是,如果在没有更多触发器指向它时将其属性“durable”设置为 false,则可以删除作业。这也是我的问题关于调度程序如何或何时删除其触发器的问题

Yes, it automatically removes these triggers.是的,它会自动删除这些触发器。 I've found some documentation for this topic: https://www.quartz-scheduler.org/api/2.1.7/org/quartz/SimpleTrigger.html我找到了关于这个主题的一些文档: https : //www.quartz-scheduler.org/api/2.1.7/org/quartz/SimpleTrigger.html

there is a line stating:有一行说明:

int getRepeatCount() Get the the number of times the SimpleTrigger should repeat, after which it will be automatically deleted. int getRepeatCount()获取 SimpleTrigger 应重复的次数,之后将自动删除。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM