Annotation Interface ScheduledAt
@Target(METHOD)
@Retention(RUNTIME)
@Repeatable(ScheduledAtContainer.class)
public @interface ScheduledAt
Annotates a method to be executed at a fixed time of the day
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
hour
String hourThe hour of the day to run the task- Returns:
- the hour of the day to run the task
-
minute
String minuteThe minute of the hour to run the task- Returns:
- the minute of the hour to run the task
- Default:
"0"
-
second
String secondThe second of the minute to run the task- Returns:
- the second of the minute to run the task
- Default:
"0"
-
async
String asyncWhether the task should be executed asynchronously...If the method has more than one ScheduledAt annotation, if this is set to true, all annotations will be executed asynchronously.
- Returns:
- whether the task should be executed asynchronously
- Default:
"false"
-