public void runQueue ( ) { synchronized ( sync ) { while ( ! queue . isEmpty ( ) ) { Runnable r = queue . poll ( ) ; if ( r != null ) { try { r . run ( ) ; } catch ( Exception e ) { // Alternatively, we could allow the specification of exception // handlers for each runnable in the API. For now we'll just log. // TODO: handle exceptions here better! LoggingUtil . exception ( e ) ; } } else { LoggingUtil . warning ( "Tried to run a 'null' Object." ) ; } } } }
Run the processing queue now . This should usually be only invoked by the UpdateSynchronizer