de.myfoo.commonj.timers
Class TimerExecutor

java.lang.Object
  extended by de.myfoo.commonj.timers.TimerExecutor
All Implemented Interfaces:
java.lang.Runnable

public final class TimerExecutor
extends java.lang.Object
implements java.lang.Runnable

Timer executor.

Version:
1.0
Author:
Kelly

Constructor Summary
TimerExecutor(FooTimer timer, FooTimerManager timerManager)
          Creates a new instance of TimerExecutor.
 
Method Summary
 FooTimer getTimer()
          Getter for timer
 FooTimerManager getTimerManager()
          Getter for timerManager
 boolean isRunning()
          Is timer running
 void run()
          run method to execute a timer
 void setTimer(FooTimer timer)
          Setter for timer
 void setTimerManager(FooTimerManager timerManager)
          Setter for timerManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimerExecutor

public TimerExecutor(FooTimer timer,
                     FooTimerManager timerManager)
Creates a new instance of TimerExecutor.

Method Detail

run

public void run()
run method to execute a timer

Specified by:
run in interface java.lang.Runnable

getTimer

public FooTimer getTimer()
Getter for timer

Returns:
Returns the timer.

setTimer

public void setTimer(FooTimer timer)
Setter for timer

Parameters:
timer - The timer to set.

getTimerManager

public FooTimerManager getTimerManager()
Getter for timerManager

Returns:
Returns the timerManager.

setTimerManager

public void setTimerManager(FooTimerManager timerManager)
Setter for timerManager

Parameters:
timerManager - The timerManager to set.

isRunning

public boolean isRunning()
Is timer running

Returns:
true if timer is running