net.sourceforge.atunes.kernel
Class Scheduler

java.lang.Object
  extended by net.sourceforge.atunes.kernel.Scheduler

public class Scheduler
extends java.lang.Object

The Class Scheduler.


Field Summary
protected static Logger logger
          Logger.
 
Constructor Summary
Scheduler()
           
 
Method Summary
static void runInParallel(boolean wait, java.lang.Runnable... runnables)
          Executes different tasks in parallel.
static void scheduleTaskAfter(java.lang.String taskName, java.lang.Runnable task, int seconds)
          Schedules a task to be executed after X seconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static Logger logger
Logger.

Constructor Detail

Scheduler

public Scheduler()
Method Detail

scheduleTaskAfter

public static void scheduleTaskAfter(java.lang.String taskName,
                                     java.lang.Runnable task,
                                     int seconds)
Schedules a task to be executed after X seconds.

Parameters:
taskName - the task name
task - the task
seconds - the seconds

runInParallel

public static void runInParallel(boolean wait,
                                 java.lang.Runnable... runnables)
Executes different tasks in parallel.

Parameters:
wait - the wait
runnables - the runnables


Copyright © 2006-2008 The aTunes Team. All Rights Reserved.