@Documented @Retention(value=RUNTIME) @Target(value={METHOD,ANNOTATION_TYPE}) @Executable(processOnStartup=true) @Repeatable(value=Schedules.class) @Parallel public @interface Scheduled
Modifier and Type | Optional Element and Description |
---|---|
String |
cron |
String |
fixedDelay
A String representation of the
Duration between the time of the last execution and the
beginning of the next. |
String |
fixedRate
A String representation of the
Duration between executions. |
String |
initialDelay
A String representation of the
Duration before starting executions. |
String |
scheduler |
String |
zoneId
A String representation of the
ZoneId to base our cron expression on. |
public abstract String cron
public abstract String zoneId
ZoneId
to base our cron expression on.
Defaults to ZoneId.systemDefault()
public abstract String scheduler
Named
bean that is a
ScheduledExecutorService
to use to schedule the task