Class EventBusImpl

    • Method Detail

      • identifier

        public String identifier()
        Description copied from interface: EventBus
        Returns the name this event bus is identified by.
        Specified by:
        identifier in interface EventBus
        Returns:
        the identifier of this event bus.
        See Also:
        EventBus.identifier()
      • register

        public void register​(Object object)
        Description copied from interface: EventBus
        Registers an object to the event bus.
        Specified by:
        register in interface EventBus
        Parameters:
        object - the object to register.
        See Also:
        EventBus.register(Object)
      • unregister

        public void unregister​(Object object)
        Description copied from interface: EventBus
        Unregisters an object from the event bus.
        Specified by:
        unregister in interface EventBus
        Parameters:
        object - the object to unregister.
        See Also:
        EventBus.unregister(Object)
      • unregisterAll

        public void unregisterAll()
        Description copied from interface: EventBus
        Unregisters all observers currently registered at the event bus.
        Specified by:
        unregisterAll in interface EventBus
      • post

        public void post​(Object event)
        Description copied from interface: EventBus
        Distributes an event to all registered observers.
        Specified by:
        post in interface EventBus
        Parameters:
        event - the event to distribute.
        See Also:
        EventBus.post(Object)