mx4j.timer

Class TimerTask

Implemented Interfaces:
Comparable, Runnable

public abstract class TimerTask
extends TimeTask

A subclass of TimeTask for the JMX Timer service.

Version:
$Revision: 1.8 $

Constructor Summary

TimerTask(javax.management.timer.TimerNotification n, Date date, long period, long occurrences, boolean fixedRate)

Method Summary

boolean
equals(Object obj)
long
getDate()
boolean
getFixedRate()
long
getNextExecutionTime()
javax.management.timer.TimerNotification
getNotification()
long
getOccurrences()
long
getPeriod()
int
hashCode()
boolean
isFinished()
boolean
isPeriodic()
void
setFinished(boolean value)
void
setNextExecutionTime(long time)

Methods inherited from class mx4j.timer.TimeTask

compareTo, getFixedRate, getNextExecutionTime, getPeriod, isFinished, isPeriodic, run, setFinished, setNextExecutionTime

Constructor Details

TimerTask

public TimerTask(javax.management.timer.TimerNotification n,
                 Date date,
                 long period,
                 long occurrences,
                 boolean fixedRate)

Method Details

equals

public boolean equals(Object obj)


getDate

public long getDate()


getFixedRate

public boolean getFixedRate()
Overrides:
getFixedRate in interface TimeTask


getNextExecutionTime

public long getNextExecutionTime()
Overrides:
getNextExecutionTime in interface TimeTask


getNotification

public javax.management.timer.TimerNotification getNotification()


getOccurrences

public long getOccurrences()


getPeriod

public long getPeriod()
Overrides:
getPeriod in interface TimeTask


hashCode

public int hashCode()


isFinished

public boolean isFinished()
Overrides:
isFinished in interface TimeTask


isPeriodic

public boolean isPeriodic()
Overrides:
isPeriodic in interface TimeTask


setFinished

public void setFinished(boolean value)
Overrides:
setFinished in interface TimeTask


setNextExecutionTime

public void setNextExecutionTime(long time)
Overrides:
setNextExecutionTime in interface TimeTask


Copyright © 2001-2003 MX4J Team. All Rights Reserved.