public abstract class ReschedulableTimerTask extends java.lang.Object implements java.lang.Runnable, java.lang.Comparable<ReschedulableTimerTask>
| Modifier | Constructor and Description |
|---|---|
protected |
ReschedulableTimerTask()
Constructor for a ReschedulableTimerTask.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
resched(ReschedulableTimer queue,
int delay,
int repeatInterval)
Queue this task to the specified timer to be executed after the specified period of time.
|
protected ReschedulableTimerTask()
public void resched(ReschedulableTimer queue, int delay)
queue - ReschedulableTimer to manage this taskdelay - interval in milliseconds before this task should be executedpublic void resched(ReschedulableTimer queue, int delay, int repeatInterval)
queue - ReschedulableTimer to manage this taskdelay - interval in milliseconds before this task should be executedrepeatInterval - time in milliseconds after last scheduled run time that this task should run againpublic 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 ReschedulableTimerTaskpublic final boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - some objectpublic final int hashCode()
hashCode in class java.lang.Objectpublic boolean isActive()