|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--mx4j.util.TimeTask
|
+--mx4j.timer.TimerTask
A subclass of TimeTask for the JMX Timer service.
| Constructor Summary | |
TimerTask(TimerNotification n,
java.util.Date date,
long period,
long occurrences)
|
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
|
long |
getDate()
|
long |
getNextExecutionTime()
Returns the next time at which the task will be executed, ie the TimeTask.run() method is called. |
TimerNotification |
getNotification()
|
long |
getOccurrences()
|
long |
getPeriod()
Returns the period of this task. |
int |
hashCode()
|
boolean |
isFinished()
Returns whethere this task is finished. |
boolean |
isPeriodic()
Returns whether this task is periodic. |
void |
setFinished(boolean value)
Marks this task as finished or not. |
void |
setNextExecutionTime(long time)
Sets the next execution time. |
| Methods inherited from class mx4j.util.TimeTask |
compareTo, run |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TimerTask(TimerNotification n,
java.util.Date date,
long period,
long occurrences)
| Method Detail |
public TimerNotification getNotification()
public boolean isFinished()
TimeTask
isFinished in class TimeTaskTimeTask.setFinished(boolean)public void setFinished(boolean value)
TimeTaskTimeTask.run() method will not be called anymore.
setFinished in class TimeTaskTimeTask.isFinished()public long getPeriod()
TimeTask
getPeriod in class TimeTaskTimeTask.isPeriodic()public boolean isPeriodic()
TimeTask
isPeriodic in class TimeTaskTimeTask.getPeriod()public long getNextExecutionTime()
TimeTaskTimeTask.run() method is called.
getNextExecutionTime in class TimeTaskTimeTask.setNextExecutionTime(long)public void setNextExecutionTime(long time)
TimeTask
setNextExecutionTime in class TimeTaskTimeTask.getNextExecutionTime()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic long getOccurrences()
public long getDate()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||