de.myfoo.commonj.timers
Class FixedRateTimer

java.lang.Object
  extended by de.myfoo.commonj.timers.FooTimer
      extended by de.myfoo.commonj.timers.FixedRateTimer
All Implemented Interfaces:
commonj.timers.Timer

public final class FixedRateTimer
extends FooTimer

Fixed rate timer.

Version:
1.0
Author:
Kelly

Field Summary
 
Fields inherited from class de.myfoo.commonj.timers.FooTimer
period, scheduledExcecutionTime, stopped
 
Constructor Summary
FixedRateTimer(long startTime, long period, commonj.timers.TimerListener listener)
          Creates a new instance of FixedRateTimer.
 
Method Summary
protected  void computeNextExecutionTime()
          Compute the next execution time.
 
Methods inherited from class de.myfoo.commonj.timers.FooTimer
cancel, execute, getPeriod, getScheduledExecutionTime, getTimerListener, isCancelled, isExpired, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedRateTimer

public FixedRateTimer(long startTime,
                      long period,
                      commonj.timers.TimerListener listener)
Creates a new instance of FixedRateTimer.

Parameters:
startTime - start time
period - execution period
listener - the timer listener for this timer.
Method Detail

computeNextExecutionTime

protected void computeNextExecutionTime()
Compute the next execution time.

Specified by:
computeNextExecutionTime in class FooTimer
See Also:
FooTimer.computeNextExecutionTime()