1 package net.sourceforge.basher.annotations;
2
3 import java.lang.annotation.ElementType;
4 import java.lang.annotation.Retention;
5 import java.lang.annotation.RetentionPolicy;
6 import java.lang.annotation.Target;
7
8 /** Indicates that the annotated class should be treated as a Basher timed task. The specified 'interval' property
9 * specifies at what interval the task should run.
10 * @author Johan Lindquist
11 */
12 @Retention( RetentionPolicy.RUNTIME)
13 @Target( ElementType.TYPE)
14 public @interface BasherTimedTask
15 {
16 /** Specifies the interval at which the task should run. Defined in seconds.
17 *
18 * @return The interval (in seconds)
19 */
20 int interval();
21 }