@ Override public boolean isReady ( final long time ) { while ( true ) { final long thisTs = this . current . get ( ) ; if ( thisTs >= time || this . current . compareAndSet ( thisTs , time ) ) { return true ; } } }
Check if the event with a given timestamp has occurred according to the timer . This implementation always returns true and updates current timer s time to the timestamp of the most distant future event .