private boolean getNextEviction ( ) { long nowTime = System . currentTimeMillis ( ) ; final long sleepEndTime = nowTime + evictionInverval ; while ( nowTime < sleepEndTime ) { final long toSleep = Math . max ( 100 , sleepEndTime - nowTime ) ; synchronized ( this ) { if ( terminate ) return false ; try { wait ( toSleep ) ; } catch ( InterruptedException e ) { // ignore } } nowTime = System . currentTimeMillis ( ) ; } return true ; }
Waits for a next eviction .