@Inherited @Documented @Retention(value=RUNTIME) @Target(value=TYPE) public @interface Scheduled
Scheduled annotates Task to specified scheduling information.
@Scheduled("0/2 * * * * ?")
public class MyTask implements Task<Integer> {
...
}
| Modifier and Type | Optional Element and Description |
|---|---|
ExceptionPolicy |
exceptionPolicy
Defines the behavior when exception occurs during the task exception.
|
int |
priority |
boolean |
requestRecovery |
boolean |
storeDurably |
String |
taskName
The
Task name, must be unique within the group. |
String |
timeZoneId |
String |
triggerName |
String |
value |
public static final String DEFAULT
public abstract String taskName
Task name, must be unique within the group.Task namepublic abstract boolean requestRecovery
Task should be re-executed upon execution failure.public abstract boolean storeDurably
Task should remain stored after it is orphaned (no trigger points to it).public abstract ExceptionPolicy exceptionPolicy
ExceptionPolicypublic abstract String triggerName
public abstract String value
public abstract String timeZoneId
Copyright © 2013-2018–2019 SeedStack. All rights reserved.