KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > taskman > PeriodicTaskDescriptor


1 package org.sapia.taskman;
2
3 /**
4  * A task descriptor that wraps a task to be executed at each <code>n</code>
5  * milliseconds, indefinitely.
6  *
7  * @author Yanick Duchesne 15-Apr-2003
8  * <dl>
9  * <dt><b>Copyright: </b>
10  * <dd>Copyright &#169; 2002-2004 <a
11  * HREF="http://www.sapia-oss.org">Sapia Open Source Software </a>. All
12  * Rights Reserved.</dd>
13  * </dt>
14  * <dt><b>License: </b>
15  * <dd>Read the license.txt file of the jar or visit the <a
16  * HREF="http://www.sapia-oss.org/license.html">license page </a> at the
17  * Sapia OSS web site</dd>
18  * </dt>
19  * </dl>
20  */

21 public class PeriodicTaskDescriptor extends TaskDescriptor {
22   
23   static final long serialVersionUID = 1L;
24   
25   /**
26    * Constructor for PeriodicTaskDescriptor.
27    *
28    * @param the
29    * name of the task to which this instance corresponds.
30    * @param intervalMillis
31    * the interval (in millis) at which the task wrapped by this
32    * instance should be executed.
33    * @param the
34    * <code>Task</code> to execute.
35    */

36   public PeriodicTaskDescriptor(String JavaDoc name, long intervalMillis, Task t) {
37     super(name, TaskDescriptor.PERIODIC, intervalMillis, t);
38   }
39 }
40
Popular Tags