Class DeferredEventBus


  • @Singleton
    public class DeferredEventBus
    extends EventBus
    • Method Detail

      • register

        public void register​(Object object)
        Description copied from class: EventBus
        Registers subscriber to EventBus. All methods in subscriber and it's parent classes are checked for Subscribe annotation and then added to map of subscriptions.
        Overrides:
        register in class EventBus
        Parameters:
        object - subscriber to register
      • unregister

        public void unregister​(Object object)
        Description copied from class: EventBus
        Unregisters all subscribed methods from provided subscriber object.
        Overrides:
        unregister in class EventBus
        Parameters:
        object - object to unsubscribe from
      • post

        public void post​(Object object)
        Description copied from class: EventBus
        Posts provided event to all registered subscribers. Subscriber calls are invoked immediately, ordered by priority then their declaring class' name.
        Overrides:
        post in class EventBus
        Parameters:
        object - event to post
      • replay

        public void replay()