jjzjj

JobListener

全部标签

java - JobListener 的 jobExecutionVetoed 何时会在 Quartz Scheduler 中执行?

JobListener的jobExecutionVetoed什么时候会在QuartzScheduler中执行??jobExecutionVetoed方法有什么用?? 最佳答案 假设我们有一个工作J和触发器T。我们在TriggerListenervetoJobExecution()中有一个方法。该方法在触发器刚被触发时执行。所以,有了这个我们就可以控制是执行还是取消与触发器关联的作业。如果我们想解雇这个工作,那么我们应该从这个方法返回true。一旦我们从该方法返回,joblistener中的“jobExecutionVetoed()”