org.globus.wsrf.impl.timer
Class TimerImpl

java.lang.Object
  extended byorg.globus.wsrf.impl.timer.TimerImpl
All Implemented Interfaces:
commonj.timers.Timer

public class TimerImpl
extends java.lang.Object
implements commonj.timers.Timer


Field Summary
private  commonj.timers.TimerListener listener
           
private  long period
           
private  TimerListenerWrapper timerTask
           
 
Constructor Summary
TimerImpl(commonj.timers.TimerListener listener, long period)
           
 
Method Summary
 boolean cancel()
           
 long getPeriod()
           
 commonj.timers.TimerListener getTimerListener()
           
protected  TimerListenerWrapper getTimerTask()
           
 long scheduledExecutionTime()
           
protected  void setTimerTask(TimerListenerWrapper timerTask)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timerTask

private TimerListenerWrapper timerTask

listener

private commonj.timers.TimerListener listener

period

private long period
Constructor Detail

TimerImpl

public TimerImpl(commonj.timers.TimerListener listener,
                 long period)
Method Detail

cancel

public boolean cancel()
Specified by:
cancel in interface commonj.timers.Timer

getPeriod

public long getPeriod()
Specified by:
getPeriod in interface commonj.timers.Timer

getTimerListener

public commonj.timers.TimerListener getTimerListener()
Specified by:
getTimerListener in interface commonj.timers.Timer

scheduledExecutionTime

public long scheduledExecutionTime()
Specified by:
scheduledExecutionTime in interface commonj.timers.Timer

getTimerTask

protected TimerListenerWrapper getTimerTask()
Returns:
Returns the timerTask.

setTimerTask

protected void setTimerTask(TimerListenerWrapper timerTask)
Parameters:
timerTask - The timerTask to set.