Annotation Interface ScheduleWithFixedDelay


@Target(METHOD) @Retention(CLASS) public @interface ScheduleWithFixedDelay
An annotation for scheduling a re-occurring task with fixed delay between each task.
  • Element Details

    • initialDelay

      long initialDelay
      Returns:
      initial delay in unit() before scheduling is started
      Default:
      0L
    • delay

      long delay
      Returns:
      time in unit() that have to elapse before next tasks will be scheduled
      Default:
      0L
    • unit

      Returns:
      unit to use for delay() interpretation
      Default:
      MILLIS
    • config

      String config
      Returns:
      path for configuration to apply options (config > annotation options in priority)
      Default:
      ""