删除石英中的触发器 [英] delete trigger in quartz

查看:88
本文介绍了删除石英中的触发器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法删除特定作业的预定触发器?似乎删除触发器的唯一方法是删除整个作业,然后重新注册作业并触发。

Is there a way to delete a scheduled trigger with a specific job? It seems that only way to delete a trigger is to delete the whole job and then re-register the job and trigger.

我的工作可能有100个+触发器,我真的不想删除作业,并在我只需要删除1个触发器时重新注册所有触发器。

I've a job which can potentially have 100+ triggers and I really don't want to delete the job and re-register all the triggers when I just have to delete 1 trigger.

此外,有没有办法在配置触发器后立即停止调度程序执行作业?

Also, is there a way to stop the scheduler from executing the job as soon as the trigger is configured?

谢谢

推荐答案

尝试 scheduler.unscheduleJob

这会将触发器和组名称作为参数接受,并且只会删除指定的触发器,而不是作业。

this accepts the trigger and group names as a parameters and will only remove the trigger specified, not the job.

QuartzScheduler

Scheduler

论坛

这篇关于删除石英中的触发器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆