EventBus API

To create instance of EventBus use the following code:

EventBus eventBus = EventBusFactory.getInstance();

NOTE: Remember, that EventBus is asynchronous. All handlers are called in a different thread than the thread that initially fired the event.