src/main/java/com/stoyanr/evictor/scheduler/SingleThreadEvictionScheduler.java
/**
         * Waits for the specified timeout (in nanoseconds). Returns true if the
         * timeout expired and false if thread was notified or interrupted.
         */
Waits for the specified timeout (in nanoseconds). Returns true if the
timeout expired and false if thread was notified or interrupted.
Waits for the specified timeout ( in nanoseconds ) . Returns true if the timeout expired and false if thread was notified or interrupted .
private boolean waitFor(long timeout) {
            boolean result = true;
            try {
                synchronized (mutex) {
                    notified = false;
                    mutex.wait(timeout / 1000000, (int) (timeout % 1000000));
                    result = !notified;
                }
            } catch (InterruptedException e) {
                result = false;
            }
            return result;
        }
private boolean waitFor ( long timeout ) { boolean result = true ; try { synchronized ( mutex ) { notified = false ; mutex . wait ( timeout / 1000000 , ( int ) ( timeout % 1000000 ) ) ; result = ! notified ; } } catch ( InterruptedException e ) { result = false ; } return result ; }
Waits for the specified timeout (in nanoseconds).
Waits for the specified timeout ( in nanoseconds ) .