called when the server becomes idle . should not block , but may invoke new threads . concode_field_sep Logger LOG concode_elem_sep ScheduledThreadPoolExecutor executor concode_elem_sep Path workspaceDir concode_elem_sep long FIVE_MIN_MILLIS concode_field_sep void busy concode_elem_sep boolean memoryHeuristic concode_elem_sep boolean continueProcessing
void function ( ) { Preconditions . checkState ( ! executor . isShutdown ( ) ) ; executor . schedule ( new Runnable ( ) { @ Override public void run ( ) { long loc0 = System . currentTimeMillis ( ) ; System . gc ( ) ; LOG . info ( "srini_string" + ( System . currentTimeMillis ( ) - loc0 ) + "srini_string" ) ; } } , 10 , TimeUnit . SECONDS ) ; }