public interface IJobListener
IJobDetail executes. In general,
applications that use a Scheduler will not have use for this
mechanism.IListenerManager.addJobListener(IJobListener, IMatcher),
IMatcher,
IJob,
IJobExecutionContext,
JobExecutionException,
ITriggerListener| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Get the name of the
JobListener. |
default void |
jobExecutionVetoed(IJobExecutionContext context)
Called by the
when a
was about to be executed
(an associated has occurred), but a
vetoed it's execution. |
default void |
jobToBeExecuted(IJobExecutionContext context)
Called by the
when a
is about to be executed
(an associated has occurred). |
default void |
jobWasExecuted(IJobExecutionContext context,
JobExecutionException jobException)
Called by the
after a
has been executed, and be
for the associated Trigger's triggered(xx) method
has been called. |
String getName()
Get the name of the JobListener.
default void jobToBeExecuted(IJobExecutionContext context)
Called by the when a
IScheduler is about to be executed
(an associated IJobDetail has occurred).
ITrigger
This method will not be invoked if the execution of the Job was vetoed by a
.
ITriggerListener
context - jobExecutionVetoed(IJobExecutionContext)default void jobExecutionVetoed(IJobExecutionContext context)
Called by the when a
IScheduler was about to be executed
(an associated IJobDetail has occurred), but a
ITrigger vetoed it's execution.
ITriggerListener
context - jobToBeExecuted(IJobExecutionContext)default void jobWasExecuted(IJobExecutionContext context, JobExecutionException jobException)
Called by the after a
IScheduler has been executed, and be
for the associated IJobDetailTrigger's triggered(xx) method
has been called.
context - jobException - Copyright © 2016–2021 Philip Helger. All rights reserved.