|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.util.Scheduler
public class Scheduler
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.
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 |
---|
public static void run(long delay, java.lang.Runnable task)
task
for execution in delay
milli
seconds.
public static void run(long delay, java.util.TimerTask task)
run(long, XNapTask)
instead.
public static void run(long delay, XNapTask task)
task
for execution in delay
milli
seconds.
public static void run(long delay, long interval, java.lang.Runnable task)
task
for execution in delay
milli
seconds and from that point for repeated executions
in interval
milli seconds.
public static void run(long delay, long interval, java.util.TimerTask task)
run(long, long, XNapTask)
instead.
public static void run(long delay, long interval, XNapTask task)
task
for execution in delay
milli
seconds and from that point for repeated executions
in interval
milli seconds.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |