@Retention(value=CLASS)
@Target(value=METHOD)
public @interface Cron
Mark a method to be a cron job. The method must be public and has no parameters. If the method is virtual then the class declared the method must have a public constructor without parameter
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
value
Specifies cron expression or a configuration key starts with
"cron." |
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
id
Specify the ID of the scheduled job.
|
Copyright © 2014–2017 ActFramework. All rights reserved.