Code example for EventBus

Methods: register

0
        eventStore.append(event);
    } 
 
    @Override 
    public void registerSubscriber(Object subscriber) { 
        eventBus.register(subscriber);
    } 
 
    @Override 
    public void unregisterSubscriber(Object subscriber) { 
        eventBus.unregister(subscriber);
    } 
}