Annotation Interface RepeatingTask


@Target(METHOD) @Retention(RUNTIME) public @interface RepeatingTask
Annotates a handle to be executed repeatedly at a fixed interval
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The interval between each execution of the handle
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Whether the task should be executed asynchronously
    The delay before the first execution of the handle
    The time unit of the interval
  • Element Details

    • every

      String every
      The interval between each execution of the handle
      Returns:
      the interval between each execution of the handle
    • delay

      String delay
      The delay before the first execution of the handle
      Returns:
      the delay before the first execution of the handle
      Default:
      "0"
    • unit

      String unit
      The time unit of the interval
      Returns:
      the time unit of the interval
      Default:
      "MILLISECONDS"
    • async

      String async
      Whether the task should be executed asynchronously
      Returns:
      whether the task should be executed asynchronously
      Default:
      "false"