public Future < DependencyGraph > rebuildDependencyGraphAsync ( ) { dependencyGraphDirty . set ( true ) ; return Timer . get ( ) . schedule ( new java . util . concurrent . Callable < DependencyGraph > ( ) { @ Override public DependencyGraph call ( ) throws Exception { if ( dependencyGraphDirty . get ( ) ) { rebuildDependencyGraph ( ) ; } return dependencyGraph ; } } , 500 , TimeUnit . MILLISECONDS ) ; }
Rebuilds the dependency map asynchronously .