src/main/java/zoot/tube/schedule/TaskScheduler.java
/**
     * Loads a Task into the Scheduler.
     *
     * @param task the Task to load into the Scheduler.
     */
Loads a Task into the Scheduler.
@param task the Task to load into the Scheduler.
Loads a Task into the Scheduler . @param task the Task to load into the Scheduler .
private void loadTaskIntoScheduler(Task task) {
        long delay = task.getStart().getTime() - System.currentTimeMillis();
        System.out.println(delay / 60000);
        Runnable runnable = createRunnableFromTask(task);
        scheduler.schedule(runnable, delay, TimeUnit.MILLISECONDS);
    }
private void loadTaskIntoScheduler ( Task task ) { long delay = task . getStart ( ) . getTime ( ) - System . currentTimeMillis ( ) ; System . out . println ( delay / 60000 ) ; Runnable runnable = createRunnableFromTask ( task ) ; scheduler . schedule ( runnable , delay , TimeUnit . MILLISECONDS ) ; }
Loads a Task into the Scheduler.
Loads a Task into the Scheduler .