org.apache.ws.util.timer
Class TimerImpl

java.lang.Object
  extended byorg.apache.ws.util.timer.TimerImpl
All Implemented Interfaces:
commonj.timers.Timer

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

DOCUMENT_ME

Version:
$Revision: 1.7 $
Author:
$author$

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

Constructor Detail

TimerImpl

public TimerImpl(commonj.timers.TimerListener listener,
                 long period)
Creates a new TimerImpl object.

Parameters:
listener - DOCUMENT_ME
period - DOCUMENT_ME
Method Detail

getPeriod

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

getScheduledExecutionTime

public long getScheduledExecutionTime()
                               throws java.lang.IllegalStateException
DOCUMENT_ME

Specified by:
getScheduledExecutionTime in interface commonj.timers.Timer
Returns:
DOCUMENT_ME
Throws:
java.lang.IllegalStateException - DOCUMENT_ME

getTimerListener

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

cancel

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

scheduledExecutionTime

public long scheduledExecutionTime()

setTimerTask

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

getTimerTask

protected TimerTaskImpl getTimerTask()
Returns:
Returns the timerTask.


Copyright © 2004-2005 Apache Software Foundation. All Rights Reserved.