View Javadoc

1   package net.sourceforge.basher.annotations;
2   
3   import java.lang.annotation.Retention;
4   import java.lang.annotation.RetentionPolicy;
5   import java.lang.annotation.Target;
6   import java.lang.annotation.ElementType;
7   
8   /** Defines the maximum amount of time a task is allowed to execute before an error is raised.
9    * @author Johan Lindquist
10   * @version $Revision$
11   */
12  @Retention(RetentionPolicy.RUNTIME)
13  @Target(ElementType.TYPE)
14  public @interface BasherMaxTime
15  {
16      /** Defines the maximum amount of time a task is allowed to execute before an error is raised.  Defined
17       * in seconds
18       * @return The time
19       */
20      int time();
21  }