@ SuppressWarnings ( "unused" ) public Event addEventLifeCycleListener ( EventLifeCycle eventLifeCycle , Consumer < EventLifeCycle > cycleCallback ) { lifeCycleListeners . compute ( eventLifeCycle , ( unused , list ) -> { if ( list == null ) list = new ArrayList <> ( ) ; list . add ( cycleCallback ) ; return list ; } ) ; return this ; }
adds the Consumer to the specified EventLifeCycle . In its current implementation the invocation of the Callback method is parallel but the notificaton of the listners not .