Package org.quartz.listeners
Interface ListenerManager
- All Known Implementing Classes:
ListenerManagerImpl
public interface ListenerManager
Client programs may be interested in the 'listener' interfaces that are available from Quartz.
The
JobListener
interface provides notifications of Job
executions. The TriggerListener
interface provides notifications of
Trigger
firings. The SchedulerListener
interface provides
notifications of Scheduler
events and errors. Listeners can be associated with local
schedulers through the ListenerManager
interface.- Since:
- 2.0 - previously listeners were managed directly on the Scheduler interface.
- Author:
- jhouse
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTriggerListener
(TriggerListener triggerListener) Add the given
to theTriggerListener
Scheduler
, and register it to receive events for TriggersGet a List containing all of the
s in theJobListener
Scheduler
.Get a List containing all of the
s registered with theSchedulerListener
Scheduler
.Get a List containing all of the
s in theTriggerListener
Scheduler
.
-
Method Details
-
getJobListeners
List<JobListener> getJobListeners()Get a List containing all of the
s in theJobListener
Scheduler
. -
addTriggerListener
Add the given
to theTriggerListener
Scheduler
, and register it to receive events for Triggers -
getTriggerListeners
List<TriggerListener> getTriggerListeners()Get a List containing all of the
s in theTriggerListener
Scheduler
. -
getSchedulerListeners
List<SchedulerListener> getSchedulerListeners()Get a List containing all of the
s registered with theSchedulerListener
Scheduler
.
-