Uses of the Quartz Listeners

Armed with all this information, what can you do with these listeners? Actually, you can do quite a bit. First, it's worth noting that, internally, Quartz uses these listeners to help manage the Scheduler and your jobs and triggers. The framework also includes a couple plug-ins that implement the listener interfaces that log all job and trigger history: org.quartz.plugins.history.LoggingJobHistoryPlugin and org.quartz.plugins.history.LoggingTriggerHistoryPlugin, respectively. We talk about Quartz plug-ins in the next chapter.

Here are a few uses for listeners:

These are only a few ideas. Quartz listeners provide a way for you to be notified programmatically when specific events take place during the runtime of your Quartz application. What you choose to do with that knowledge, if anything, is entirely up to you.

Категории