Interface EventManagerService


  • public interface EventManagerService
    Event manager service.
    Author:
    nikolam
    • Method Detail

      • publish

        void publish​(Event event)
        Publishes an event to the framework. Event delivery is kept local, that is, only subscribed handlers on this machine receive the event.
        Parameters:
        event - event to publish.
      • subscribe

        void subscribe​(EventHandler handler,
                       Event.Type eventType,
                       Class<?> desiredScope)
        Subscribes an event handler. Subscribed handlers are kept on this local machine.
        Parameters:
        handler - event handler.
        eventType - type of event to subscribe to.
        desiredScope - desired scope class of event.
      • unsubscribe

        void unsubscribe​(EventHandler handler,
                         Event.Type eventType,
                         Class<?> desiredScope)
        Un-subscribes an event handler.
        Parameters:
        handler - event handler to un-subscribe.
        eventType - type of event to un-subscribe from.
        desiredScope - desired scope class of event.