Annotation Type Scheduled

    • Optional Element Summary

      Optional Elements 
      Modifier and TypeOptional ElementDescription
      Stringcron
      A cron-like expression, extending the usual UN*X definition to include triggers on the second as well as minute, hour, day of month, month and day of week.
      longfixedDelay
      Execute the annotated method with a fixed period in milliseconds between the end of the last invocation and the start of the next.
      StringfixedDelayString
      Execute the annotated method with a fixed period in milliseconds between the end of the last invocation and the start of the next.
      longfixedRate
      Execute the annotated method with a fixed period in milliseconds between invocations.
      StringfixedRateString
      Execute the annotated method with a fixed period in milliseconds between invocations.
      longinitialDelay
      Number of milliseconds to delay before the first execution of a fixedRate() or fixedDelay() task.
      StringinitialDelayString
      Number of milliseconds to delay before the first execution of a fixedRate() or fixedDelay() task.
      Stringzone
      A time zone for which the cron expression will be resolved.
    • Element Detail

      • cron

        String cron
        A cron-like expression, extending the usual UN*X definition to include triggers on the second as well as minute, hour, day of month, month and day of week.

        E.g. "0 * * * * MON-FRI" means once per minute on weekdays (at the top of the minute - the 0th second).

        Returns:
        an expression that can be parsed to a cron schedule
        See Also:
        CronSequenceGenerator
        Default:
        ""
      • fixedDelay

        long fixedDelay
        Execute the annotated method with a fixed period in milliseconds between the end of the last invocation and the start of the next.
        Returns:
        the delay in milliseconds
        Default:
        -1L
      • fixedDelayString

        String fixedDelayString
        Execute the annotated method with a fixed period in milliseconds between the end of the last invocation and the start of the next.
        Returns:
        the delay in milliseconds as a String value, e.g. a placeholder
        Since:
        3.2.2
        Default:
        ""
      • fixedRate

        long fixedRate
        Execute the annotated method with a fixed period in milliseconds between invocations.
        Returns:
        the period in milliseconds
        Default:
        -1L
      • fixedRateString

        String fixedRateString
        Execute the annotated method with a fixed period in milliseconds between invocations.
        Returns:
        the period in milliseconds as a String value, e.g. a placeholder
        Since:
        3.2.2
        Default:
        ""
      • initialDelay

        long initialDelay
        Number of milliseconds to delay before the first execution of a fixedRate() or fixedDelay() task.
        Returns:
        the initial delay in milliseconds
        Since:
        3.2
        Default:
        -1L
      • initialDelayString

        String initialDelayString
        Number of milliseconds to delay before the first execution of a fixedRate() or fixedDelay() task.
        Returns:
        the initial delay in milliseconds as a String value, e.g. a placeholder
        Since:
        3.2.2
        Default:
        ""