public void triggerAsyncRefreshWithDelay ( int delayMillis ) { final HollowClient client = this . client ; final long targetBeginTime = System . currentTimeMillis ( ) + delayMillis ; refreshExecutor . execute ( new Runnable ( ) { public void run ( ) { try { long delay = targetBeginTime - System . currentTimeMillis ( ) ; if ( delay > 0 ) Thread . sleep ( delay ) ; client . triggerRefresh ( ) ; } catch ( Throwable th ) { log . log ( Level . SEVERE , "Async refresh failed" , th ) ; } } } ) ; }
Triggers async refresh after the specified number of milliseconds has passed .