Annotation Interface Scheduling.FixedRate

Enclosing class:
Scheduling

@Retention(RUNTIME) @Documented @Target(METHOD) public static @interface Scheduling.FixedRate
Scheduled to be invoked periodically at fixed rate. Fixed rate tasks are never invoked concurrently.
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Fixed interval for periodical invocation.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Initial delay of the first invocation.
    Whether the interval should be calculated from the start or end of the previous task.
  • Element Details

    • value

      String value
      Fixed interval for periodical invocation. The value is parsed using Duration.parse(CharSequence).

      Examples:

      • PT0.1S - 0.1 seconds
      • PT10M - 10 minutes
      Returns:
      fixed rate interval in Duration format
    • delayBy

      String delayBy
      Initial delay of the first invocation. Uses Duration format.
      Returns:
      initial delay
      See Also:
      Default:
      "PT0S"
    • delayType

      Whether the interval should be calculated from the start or end of the previous task.
      Returns:
      delay type
      Default:
      SINCE_PREVIOUS_START