src/main/java/com/stoyanr/evictor/scheduler/DelayedTaskEvictionScheduler.java
/**
     * (Re)schedules the task atomically. This method is synchronized to ensure
     * atomicity.
     */
(Re)schedules the task atomically. This method is synchronized to ensure
atomicity.
( Re ) schedules the task atomically . This method is synchronized to ensure atomicity .
private synchronized void scheduleTask() {
        if (future != null) {
            future.cancel(false);
        }
        schedule();
    }
private synchronized void scheduleTask ( ) { if ( future != null ) { future . cancel ( false ) ; } schedule ( ) ; }
(Re)schedules the task atomically.
( Re ) schedules the task atomically .
// Cancel the task if already scheduled, then call schedule() to // schedule a new task.