@ MainThread private void scheduleSubscribersInvocation ( Event event ) { for ( EventTarget target : targets ) { for ( EventMethod method : target . methods ) { if ( event . getKey ( ) . equals ( method . eventKey ) && method . type == EventMethod . Type . SUBSCRIBE ) { Utils . log ( event . getKey ( ) , method , "Scheduling event execution" ) ; ( ( EventBase ) event ) . handlersCount ++ ; Task task = Task . create ( this , target , method , event ) ; executionQueue . add ( task ) ; } } } }
Schedules handling of given event for all registered targets .