Quartz::Hooks::Notifier
The Notifier provides a mechanism for broadcasting hooks during a
simulation.
Hooks can be dispatched either to Procs or to Notifiable objects.
They can register to a hook using the #subscribe method. Each invocation
of this method registers the receiver to a given hook. Therefore,
objects may register to several hooks.
A default Notifier instance is associated with Simulation instances so
that objects can subscribe to simulation events.
Instance methods
clear(hook : Symbol)
Removes all entries that previously registered to the specified hook from the notifier.
count_listeners(hook : Symbol)
Returns the number of objects listening for the specified hook.
notify(hook : Symbol)
Publish a given hook, so that each registered object in the receiver is notified.
Register the given notifiable to the specified hook.