|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mx4j.timer.TimeTask mx4j.timer.TimerTask
A subclass of TimeTask for the JMX Timer service.
Constructor Summary | |
TimerTask(javax.management.timer.TimerNotification n,
java.util.Date date,
long period,
long occurrences,
boolean fixedRate)
|
Method Summary | |
boolean |
equals(java.lang.Object obj)
|
long |
getDate()
|
boolean |
getFixedRate()
Returns whether this task is a fixed rate or fixed delay task. |
long |
getNextExecutionTime()
Returns the next time at which the task will be executed, ie the TimeTask.run() method is called. |
javax.management.timer.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.timer.TimeTask |
compareTo, run |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TimerTask(javax.management.timer.TimerNotification n, java.util.Date date, long period, long occurrences, boolean fixedRate)
Method Detail |
public javax.management.timer.TimerNotification getNotification()
public boolean isFinished()
TimeTask
isFinished
in class TimeTask
TimeTask.setFinished(boolean)
public void setFinished(boolean value)
TimeTask
TimeTask.run()
method will not be called anymore.
setFinished
in class TimeTask
TimeTask.isFinished()
public long getPeriod()
TimeTask
getPeriod
in class TimeTask
TimeTask.isPeriodic()
public boolean isPeriodic()
TimeTask
isPeriodic
in class TimeTask
TimeTask.getPeriod()
public long getNextExecutionTime()
TimeTask
TimeTask.run()
method is called.
getNextExecutionTime
in class TimeTask
TimeTask.setNextExecutionTime(long)
public void setNextExecutionTime(long time)
TimeTask
setNextExecutionTime
in class TimeTask
TimeTask.getNextExecutionTime()
public int hashCode()
public boolean equals(java.lang.Object obj)
public long getOccurrences()
public long getDate()
public boolean getFixedRate()
TimeTask
getFixedRate
in class TimeTask
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |