- All Implemented Interfaces:
- org.quartz.TriggerListener
public class SyncMetricLogJobTriggerListener
extends Object
implements org.quartz.TriggerListener
SyncMetricLogJob does not allow concurrent execution of jobs.
But instead of rejecting the a job when the @DisallowConcurrentExecution
annotation is set, quartz just queues them up
for later execution
The condition leads to a massive job backup queue, If the job is
long running.
So, If a SyncMetricLogJob is running, disallow the trigger from
any further processing by vetoJobExecution.
vetoJobExecution is called by the Scheduler when a Trigger has fired,
and it's associated JobDetail is about to be executed.
If the implementation vetos the execution
(via returning true), the job's execute method will not be called.
http://www.quartz-scheduler.org/api/2.2.1/org/quartz/TriggerListener.html
- Author:
- waltz