Package dev.voidframework.scheduler
Annotation Interface Scheduled
Indicates that the method should be periodically called.
The annotated method must expect no arguments.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionA CRON-like expression containing the second, minute, hour, day of month, month, and day of week.A time zone for which the CRON expression will be resolved.intThe time in milliseconds between the end of the last execution and the next execution.intThe time in milliseconds between each execution.intThe time in milliseconds to wait before the first execution offixedDelay()andfixedRate().
-
Element Details
-
fixedDelay
int fixedDelayThe time in milliseconds between the end of the last execution and the next execution.- Returns:
- The time in milliseconds
- Default:
- 0
-
fixedRate
int fixedRateThe time in milliseconds between each execution.- Returns:
- The time in milliseconds
- Default:
- 0
-
initialDelay
int initialDelayThe time in milliseconds to wait before the first execution offixedDelay()andfixedRate(). If not specified, thefixedRate()value will be used.- Returns:
- The initial delay
- Default:
- 0
-
cron
String cronA CRON-like expression containing the second, minute, hour, day of month, month, and day of week.- Returns:
- The CRON expression
- Default:
- ""
-
cronZone
String cronZoneA time zone for which the CRON expression will be resolved. If not specified, the server's local time zone will be used.- Returns:
- A zone id accepted by
TimeZone.getTimeZone(String)
- Default:
- "UTC"
-