mx4j.timer
Class TimerTask
java.lang.Object
|
+--mx4j.util.TimeTask
|
+--mx4j.timer.TimerTask
- All Implemented Interfaces:
- java.lang.Comparable, java.lang.Runnable
- public abstract class TimerTask
- extends TimeTask
A subclass of TimeTask for the JMX Timer service.
- Version:
- $Revision: 1.2 $
- Author:
- Simone Bordet
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
TimerTask
public TimerTask(TimerNotification n,
java.util.Date date,
long period,
long occurrences)
getNotification
public TimerNotification getNotification()
isFinished
public boolean isFinished()
- Description copied from class:
TimeTask
- Returns whethere this task is finished.
- Overrides:
isFinished
in class TimeTask
- Following copied from class:
mx4j.util.TimeTask
- See Also:
TimeTask.setFinished(boolean)
setFinished
public void setFinished(boolean value)
- Description copied from class:
TimeTask
- Marks this task as finished or not. When a task is finished, its
TimeTask.run()
method will not be called anymore.
- Overrides:
setFinished
in class TimeTask
- Following copied from class:
mx4j.util.TimeTask
- See Also:
TimeTask.isFinished()
getPeriod
public long getPeriod()
- Description copied from class:
TimeTask
- Returns the period of this task. By default returns 0.
- Overrides:
getPeriod
in class TimeTask
- Following copied from class:
mx4j.util.TimeTask
- See Also:
TimeTask.isPeriodic()
isPeriodic
public boolean isPeriodic()
- Description copied from class:
TimeTask
- Returns whether this task is periodic. By default return false.
- Overrides:
isPeriodic
in class TimeTask
- Following copied from class:
mx4j.util.TimeTask
- See Also:
TimeTask.getPeriod()
getNextExecutionTime
public long getNextExecutionTime()
- Description copied from class:
TimeTask
- Returns the next time at which the task will be executed, ie the
TimeTask.run()
method is called.
- Overrides:
getNextExecutionTime
in class TimeTask
- Following copied from class:
mx4j.util.TimeTask
- See Also:
TimeTask.setNextExecutionTime(long)
setNextExecutionTime
public void setNextExecutionTime(long time)
- Description copied from class:
TimeTask
- Sets the next execution time.
- Overrides:
setNextExecutionTime
in class TimeTask
- Following copied from class:
mx4j.util.TimeTask
- See Also:
TimeTask.getNextExecutionTime()
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
getOccurrences
public long getOccurrences()
getDate
public long getDate()
Copyright © 2001-2002 MX4J Team. All Rights Reserved.