abstract class EventBus::EventHandler
- EventBus::EventHandler
- Reference
- Object
Defined in:
eventbus/event.crInstance Method Summary
-
#on_close : Nil
Method invoked when Application is going to close.
-
#on_connect : Nil
Method invoked when Listener is connected to PG.
-
#on_event(event : Event) : Nil
Method invoked whenever there is new
Event
received. -
#on_start : Nil
Method invoked when Application is going to start.
Instance Method Detail
def on_close : Nil
#
Method invoked when Application is going to close. Override this method, if you need to perform some cleanups
def on_connect : Nil
#
Method invoked when Listener is connected to PG. Override this method, if you need to perform some work
Method invoked whenever there is new Event
received.
def on_start : Nil
#
Method invoked when Application is going to start. Override this method, if you need to perform some work