Home » quartz-1.6.0 » org » quartz » [javadoc | source]
org.quartz
public interface: TriggerListener [javadoc | source]

All Known Implementing Classes:
    TriggerListenerSupport, FilterAndBroadcastTriggerListener, LoggingTriggerHistoryPlugin, DumbTriggerListener

The interface to be implemented by classes that want to be informed when a Trigger fires. In general, applications that use a Scheduler will not have use for this mechanism.

Method from org.quartz.TriggerListener Summary:
getName,   triggerComplete,   triggerFired,   triggerMisfired,   vetoJobExecution
Method from org.quartz.TriggerListener Detail:
 public String getName()

    Get the name of the TriggerListener.

 public  void triggerComplete(Trigger trigger,
    JobExecutionContext context,
    int triggerInstructionCode)
 public  void triggerFired(Trigger trigger,
    JobExecutionContext context)

    Called by the Scheduler when a Trigger has fired, and it's associated org.quartz.JobDetail is about to be executed.

    It is called before the vetoJobExecution(..) method of this interface.

 public  void triggerMisfired(Trigger trigger)

    Called by the Scheduler when a Trigger has misfired.

    Consideration should be given to how much time is spent in this method, as it will affect all triggers that are misfiring. If you have lots of triggers misfiring at once, it could be an issue it this method does a lot.

 public boolean vetoJobExecution(Trigger trigger,
    JobExecutionContext context)

    Called by the Scheduler when a Trigger has fired, and it's associated org.quartz.JobDetail is about to be executed.

    It is called after the triggerFired(..) method of this interface.