de.myfoo.commonj.timers
Class FixedDelayTimer

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

public final class FixedDelayTimer
extends FooTimer

Fixed delay timer.

Version:
1.0
Author:
Kelly

Field Summary
 
Fields inherited from class de.myfoo.commonj.timers.FooTimer
period, scheduledExcecutionTime, stopped
 
Constructor Summary
FixedDelayTimer(long startTime, long period, commonj.timers.TimerListener listener)
          Creates a new instance of FixedDelayTimer.
 
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

FixedDelayTimer

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

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()