Interface EventBusService


  • public interface EventBusService
    Provides event bus services.
    Since:
    $Release$
    Version:
    $Id$
    Author:
    Colin DuPlantis
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void post​(Object inEvent)
      Post the given event to the default topic.
      void post​(Object inEvent, String... inTopics)
      Post the given event to the given topics.
      void register​(Object inSubscriber)
      Register the given subscriber to appropriate events on the default topic.
      void register​(Object inSubscriber, String inTopic)
      Register the given subscriber to appropriate events on the given topic.
      void unregister​(Object inSubscriber)
      Unregister the given subscriber from the default topic.
      void unregister​(Object inSubscriber, String inTopic)
      Unregister the given subscriber from the given topic.
    • Method Detail

      • register

        void register​(Object inSubscriber)
        Register the given subscriber to appropriate events on the default topic.
        Parameters:
        inSubscriber - an Object value
      • register

        void register​(Object inSubscriber,
                      String inTopic)
        Register the given subscriber to appropriate events on the given topic.
        Parameters:
        inSubscriber - an Object value
        inTopic - a String value
      • unregister

        void unregister​(Object inSubscriber)
        Unregister the given subscriber from the default topic.
        Parameters:
        inSubscriber - an Object value
      • unregister

        void unregister​(Object inSubscriber,
                        String inTopic)
        Unregister the given subscriber from the given topic.
        Parameters:
        inSubscriber - an Object value
        inTopic - a String value
      • post

        void post​(Object inEvent)
        Post the given event to the default topic.
        Parameters:
        inEvent - an Object value
      • post

        void post​(Object inEvent,
                  String... inTopics)
        Post the given event to the given topics.
        Parameters:
        inEvent - an Object value
        inTopics - a String[] value