src/main/java/com/stoyanr/evictor/scheduler/RegularTaskEvictionScheduler.java
/**
     * {@inheritDoc}
     * 
     * <p>
     * This implementation checks if the executor does not have scheduled
     * evictions and the current state of the task is active, and if so cancels
     * the regular task.
     * </p>
     */



This implementation checks if the executor does not have scheduled
evictions and the current state of the task is active, and if so cancels
the regular task.
This implementation checks if the executor does not have scheduled evictions and the current state of the task is active and if so cancels the regular task .
@Override
    protected void onEvictEntries() {
        if (!hasScheduledEvictions() && this.active) {
            cancel();
        }
    }
@ Override protected void onEvictEntries ( ) { if ( ! hasScheduledEvictions ( ) && this . active ) { cancel ( ) ; } }
{@inheritDoc}
{ @inheritDoc }