@Target(value={METHOD,ANNOTATION_TYPE}) @Retention(value=RUNTIME) @Documented public @interface QuartzScheduled
| 限定符和类型 | 可选元素和说明 |
|---|---|
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.
|
long |
fixedDelay
Execute the annotated method with a fixed period between the end
of the last invocation and the start of the next.
|
long |
fixedRate
Execute the annotated method with a fixed period in milliseconds between
invocations.
|
long |
initialDelay
Number of milliseconds to delay before the first execution of a
fixedRate() or fixedDelay() task. |
public abstract String cron
"0 * * * * MON-FRI" means once
per minute on weekdays (at the top of the minute - the 0th second).public abstract long fixedDelay
public abstract long fixedRate
public abstract long initialDelay
fixedRate() or fixedDelay() task.Copyright © 2023. All rights reserved.