Annotation Interface ScheduleOnce


@Target(METHOD) @Retention(CLASS) public @interface ScheduleOnce
An annotation for scheduling single task with fixed delay before each task.
  • Element Details

    • delay

      long delay
      Returns:
      time in unit() that have to elapse before single task 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:
      ""