private void publishEvent ( String name , Object event ) { assert ( hasEventBusses ( ) ) ; EventBus eventBus = getEventBus ( name ) ; if ( eventBus == null ) { throw new RuntimeException ( "Unknown event bus name: " + name ) ; } eventBus . publish ( event ) ; }
Raise an event on a named event bus passing it to applicable consumers asynchronously .