|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ka2ddo.util.ReschedulableTimerTask
public abstract class ReschedulableTimerTask
This class defines a timer task whose delivery time can be changed while the timer is pending delivery, and can be rescheduled any number of times.
| Constructor Summary | |
|---|---|
ReschedulableTimerTask()
Constructor for a ReschedulableTimerTask. |
|
| Method Summary | |
|---|---|
void |
cancel()
Stop running this task, taking it off the pending queue. |
int |
compareTo(ReschedulableTimerTask o)
Test the order of this task relative to other tasks. |
boolean |
equals(java.lang.Object obj)
Test if this is the same task instance. |
int |
hashCode()
Get the hashcode for this object. |
boolean |
isActive()
Test if this task is actively queued to a timer. |
void |
resched(ReschedulableTimer queue,
java.util.Date wakeupTime)
Queue this task to the specified timer to be executed at the specified time. |
void |
resched(ReschedulableTimer queue,
java.util.Date wakeupTime,
long repeatInterval)
Queue this task to the specified timer to be executed at the specified time. |
void |
resched(ReschedulableTimer queue,
int delay)
Queue this task to the specified timer to be executed after the specified period of time. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Runnable |
|---|
run |
| Constructor Detail |
|---|
public ReschedulableTimerTask()
| Method Detail |
|---|
public void resched(ReschedulableTimer queue,
int delay)
queue - ReschedulableTimer to manage this taskdelay - interval in milliseconds before this task should be executed
public void resched(ReschedulableTimer queue,
java.util.Date wakeupTime)
queue - ReschedulableTimer to manage this taskwakeupTime - Date object defining the time at which this task should be executed (or as soon after as possible)
public void resched(ReschedulableTimer queue,
java.util.Date wakeupTime,
long repeatInterval)
queue - ReschedulableTimer to manage this taskwakeupTime - Date object defining the time at which this task should be executed (or as soon after as possible)repeatInterval - time in milliseconds after last scheduled run time that this task should run againpublic void cancel()
public final int compareTo(ReschedulableTimerTask o)
compareTo in interface java.lang.Comparable<ReschedulableTimerTask>o - another ReschedulableTimerTask
public final boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - some object
public final int hashCode()
hashCode in class java.lang.Objectpublic boolean isActive()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||