org.globus.wsrf.impl.timer
Class TimerImpl
java.lang.Object
org.globus.wsrf.impl.timer.TimerImpl
- All Implemented Interfaces:
- commonj.timers.Timer
- public class TimerImpl
- extends java.lang.Object
- implements commonj.timers.Timer
|
Constructor Summary |
TimerImpl(commonj.timers.TimerListener listener,
long period)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
timerTask
private TimerListenerWrapper timerTask
listener
private commonj.timers.TimerListener listener
period
private long period
TimerImpl
public TimerImpl(commonj.timers.TimerListener listener,
long period)
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.