fr.dyade.aaa.util.TimerTask Class Reference

Inherited by fr.dyade.aaa.agent.WakeUpTask, fr.dyade.aaa.util.NTransaction.GarbageTask, and org.objectweb.joram.mom.proxies.UserAgent.HeartBeatTask.

Inheritance diagram for fr.dyade.aaa.util.TimerTask:

Inheritance graph
[legend]
Collaboration diagram for fr.dyade.aaa.util.TimerTask:

Collaboration graph
[legend]
List of all members.

Public Member Functions

boolean cancel ()
abstract void run ()

Package Attributes

Timer timer
long wakeupTime
boolean waiting = false
boolean cancelled = false

Detailed Description

The TimerTask class is the base class for implementing tasks run by a Timer instance.

See also:
Timer

Definition at line 29 of file TimerTask.java.


Member Function Documentation

boolean fr.dyade.aaa.util.TimerTask.cancel (  ) 

Cancels this task by removing it from the timer's tasks list, and interrupting the timer thread if necessary.

Definition at line 44 of file TimerTask.java.

References fr.dyade.aaa.util.TimerTask.cancelled, fr.dyade.aaa.util.Timer.daemon, fr.dyade.aaa.util.TimerDaemon.interrupt(), fr.dyade.aaa.util.Timer.tasks, fr.dyade.aaa.util.TimerTask.timer, and fr.dyade.aaa.util.TimerTask.waiting.

Here is the call graph for this function:

abstract void fr.dyade.aaa.util.TimerTask.run (  )  [pure virtual]

Method called by the timer when the task is ready to execute.

Implemented in fr.dyade.aaa.agent.WakeUpTask, and org.objectweb.joram.mom.proxies.UserAgent.HeartBeatTask.

Referenced by fr.dyade.aaa.util.TimerDaemon.run().


Member Data Documentation

Timer fr.dyade.aaa.util.TimerTask.timer [package]

The task's timer reference.

Definition at line 32 of file TimerTask.java.

Referenced by fr.dyade.aaa.util.TimerTask.cancel(), and fr.dyade.aaa.agent.WakeUpTask.schedule().

long fr.dyade.aaa.util.TimerTask.wakeupTime [package]

The task's wake up time.

Definition at line 34 of file TimerTask.java.

Referenced by fr.dyade.aaa.util.TimerDaemon.run().

boolean fr.dyade.aaa.util.TimerTask.waiting = false [package]

true if the task is the next scheduled.

Definition at line 36 of file TimerTask.java.

Referenced by fr.dyade.aaa.util.TimerTask.cancel(), and fr.dyade.aaa.util.TimerDaemon.run().

boolean fr.dyade.aaa.util.TimerTask.cancelled = false [package]

true if the task has been cancelled.

Definition at line 38 of file TimerTask.java.

Referenced by fr.dyade.aaa.util.TimerTask.cancel().


The documentation for this class was generated from the following file:
Generated on Tue Sep 16 16:17:25 2008 for joram by  doxygen 1.5.0