Code example for EventBus

0
     
    private EventBus eventBus;
    private AsyncEventBus asyncEventBus;
 
    private EventInst() { 
        eventBus=new EventBus();
        asyncEventBus = new AsyncEventBus(Executors.newFixedThreadPool(20));
    } 
 
    public static EventInst getInstance() { 
 
        return eventInst;
    } 
 
    /** 
     * @return the eventBus 
     */ 
    public EventBus getEventBus() {
        return eventBus;
    }