Annotation Interface CronTrigger
@Target({TYPE,ANNOTATION_TYPE})
@Retention(RUNTIME)
@Documented
@Reflective
public @interface CronTrigger
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionA 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.longthe delay time between the cron triggersA unique id for this trigger which is optional, by default the cron expression or the delay is used.the unit of the fixed delay
-
Element Details
-
id
String idA unique id for this trigger which is optional, by default the cron expression or the delay is used.- Default:
""
-
cron
String cronA 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,
The fields read from left to right are interpreted as follows."0 * * * * MON-FRI"means once per minute on weekdays (at the top of the minute - the 0th second).- second
- minute
- hour
- day of month
- month
- day of week
- Returns:
- an expression that can be parsed to a cron schedule
- See Also:
- Default:
""
-
fixedDelay
long fixedDelaythe delay time between the cron triggers- Default:
-1L
-
timeUnit
TimeUnit timeUnitthe unit of the fixed delay- Default:
MILLISECONDS
-