Annotation Type ScheduledTask
-
@Target(TYPE) @Retention(RUNTIME) @Documented public @interface ScheduledTask
Register any class implementingTask
as a task to be scheduled
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
cluster
If true the job will only run once in the Alfresco cluster by using the JobLockServicejava.lang.String
cronProp
A key to a property from alfresco-global.properties specifying 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.java.lang.String
group
-
-
-
Element Detail
-
cron
java.lang.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. e.g."0 * * * * MON-FRI"
means once per minute on weekdays (at the top of the minute - the 0th second).- Returns:
- an expression that can be parsed to a cron schedule
-
-
-
cronProp
java.lang.String cronProp
A key to a property from alfresco-global.properties specifying 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. e.g."0 * * * * MON-FRI"
means once per minute on weekdays (at the top of the minute - the 0th second).- Returns:
- an expression that can be parsed to a cron schedule. When not provided / not resolved, fallback to default cron expression.
- Default:
- ""
-
-