Module: Synapse::EventBus::EventListener Abstract

Included in:
MappingEventListener, ProcessManager::ProcessManager
Defined in:
lib/synapse/event_bus/event_listener.rb

Overview

This module is abstract.

Represents a listener that can be notified of events from an event bus. Implementations are highly discouraged from throwing exceptions.

Consider using the event listener mixin that uses the mapping DSL.

Instance Method Summary collapse

Instance Method Details

#notify(event) ⇒ undefined

This method is abstract.

Called when an event is published to the event bus

Parameters:

  • event (EventMessage)

Returns:

  • (undefined)

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/synapse/event_bus/event_listener.rb', line 15

def notify(event)
  raise NotImplementedError
end