org.xnap.util
Class Scheduler

java.lang.Object
  extended by org.xnap.util.Scheduler

public class Scheduler
extends java.lang.Object

Provides a single thread scheduler for maintenance tasks.

All tasks are executed sequentially. Therefore tasks should complete quickly. If a timer task takes excessive time to complete, it might block the execution of subsequent tasks.

See Also:
Timer

Nested Class Summary
static class Scheduler.SimpleTimerTask
          Provides a simple timer task that executes a runnable.
 
Method Summary
static void run(long delay, long interval, java.lang.Runnable task)
          Schedules task for execution in delay milli seconds and from that point for repeated executions in interval milli seconds.
static void run(long delay, long interval, java.util.TimerTask task)
          Deprecated.  
static void run(long delay, long interval, XNapTask task)
          Schedules task for execution in delay milli seconds and from that point for repeated executions in interval milli seconds.
static void run(long delay, java.lang.Runnable task)
          Schedules task for execution in delay milli seconds.
static void run(long delay, java.util.TimerTask task)
          Deprecated.  
static void run(long delay, XNapTask task)
          Schedules task for execution in delay milli seconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

run

public static void run(long delay,
                       java.lang.Runnable task)
Schedules task for execution in delay milli seconds.


run

public static void run(long delay,
                       java.util.TimerTask task)
Deprecated. 

Use run(long, XNapTask) instead.


run

public static void run(long delay,
                       XNapTask task)
Schedules task for execution in delay milli seconds.


run

public static void run(long delay,
                       long interval,
                       java.lang.Runnable task)
Schedules task for execution in delay milli seconds and from that point for repeated executions in interval milli seconds.


run

public static void run(long delay,
                       long interval,
                       java.util.TimerTask task)
Deprecated. 

Use run(long, long, XNapTask) instead.


run

public static void run(long delay,
                       long interval,
                       XNapTask task)
Schedules task for execution in delay milli seconds and from that point for repeated executions in interval milli seconds.



Copyright © 2001-2005 XNap Team. All Rights Reserved.