module Synapse::EventBus::EventListener

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.

@abstract

Public Instance Methods

notify(event) click to toggle source

Called when an event is published to the event bus

@abstract @param [EventMessage] event @return [undefined]

# File lib/synapse/event_bus/event_listener.rb, line 15
def notify(event)
  raise NotImplementedError
end