The watcher.common.messaging.events.event_dispatcher Module

class watcher.common.messaging.events.event_dispatcher.EventDispatcher[source]

Bases: object

Generic event dispatcher which listen and dispatch events

add_event_listener(event_type, listener)[source]

Add an event listener for an event type

dispatch_event(event)[source]
has_listener(event_type, listener)[source]

Return true if listener is register to event_type

remove_event_listener(event_type, listener)[source]

Remove event listener.

Previous topic

The watcher.common.messaging.events.event Module

Next topic

The watcher.common.messaging.messaging_handler Module

Project Source

This Page