注释类型 Scheduled

    • 字段概要

      字段 
      修饰符和类型字段说明
      static StringCRON_DISABLED
      A special cron expression value that indicates a disabled trigger: "-".
    • 可选元素概要

      可选元素 
      修饰符和类型可选元素说明
      Stringcron
      A cron-like expression, extending the usual UN*X definition to include triggers on the second, 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.
    • 字段详细资料

      • CRON_DISABLED

        static final String CRON_DISABLED
        A special cron expression value that indicates a disabled trigger: "-".

        This is primarily meant for use with ${...} placeholders, allowing for external disabling of corresponding scheduled methods.

        从以下版本开始:
        5.1
        另请参阅:
        ScheduledTaskRegistrar.CRON_DISABLED
    • 元素详细资料

      • cron

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

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

        The fields read from left to right are interpreted as follows.

        • second
        • minute
        • hour
        • day of month
        • month
        • day of week

        The special value "-" indicates a disabled cron trigger, primarily meant for externally specified values resolved by a ${...} placeholder.

        返回:
        an expression that can be parsed to a cron schedule
        另请参阅:
        CronSequenceGenerator
        默认值:
        ""
      • 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.
        返回:
        the delay in milliseconds
        默认值:
        -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.
        返回:
        the delay in milliseconds as a String value, e.g. a placeholder or a java.time.Duration compliant value
        从以下版本开始:
        3.2.2
        默认值:
        ""
      • fixedRate

        long fixedRate
        Execute the annotated method with a fixed period in milliseconds between invocations.
        返回:
        the period in milliseconds
        默认值:
        -1L
      • fixedRateString

        String fixedRateString
        Execute the annotated method with a fixed period in milliseconds between invocations.
        返回:
        the period in milliseconds as a String value, e.g. a placeholder or a java.time.Duration compliant value
        从以下版本开始:
        3.2.2
        默认值:
        ""
      • initialDelay

        long initialDelay
        Number of milliseconds to delay before the first execution of a fixedRate() or fixedDelay() task.
        返回:
        the initial delay in milliseconds
        从以下版本开始:
        3.2
        默认值:
        -1L