public void addRepeatingTask(final Duration repeatEvery, final Runnable task) {

        repeatingTasks.add(new RepeatingTask(task, repeatEvery.getTimeUnit(), repeatEvery.getDuration()));
    }
public void addRepeatingTask(final Duration repeatEvery, final Runnable task) {

        repeatingTasks.add(new RepeatingTask(task, repeatEvery.getTimeUnit(), repeatEvery.getDuration()));
    }
public void addRepeatingTask ( final Duration repeatEvery , final Runnable task ) { repeatingTasks . add ( new RepeatingTask ( task , repeatEvery . getTimeUnit ( ) , repeatEvery . getDuration ( ) ) ) ; }
Add a task that gets repeated.

@param repeatEvery repeat Every time period
@param task        task to perform
Add a task that gets repeated .