polishing
This commit is contained in:
@@ -26,7 +26,7 @@ import java.lang.annotation.Target;
|
||||
* Annotation that marks a method to be scheduled. Exactly one of the
|
||||
* <code>cron</code>, <code>fixedDelay</code>, or <code>fixedRate</code>
|
||||
* attributes must be provided.
|
||||
*
|
||||
*
|
||||
* <p>The annotated method must expect no arguments and have a
|
||||
* <code>void</code> return type.
|
||||
*
|
||||
@@ -45,7 +45,6 @@ public @interface Scheduled {
|
||||
* triggers on the second as well as minute, hour, day of month, month
|
||||
* and day of week. e.g. <code>"0 * * * * MON-FRI"</code> means once
|
||||
* per minute on weekdays (at the top of the minute - the 0th second).
|
||||
*
|
||||
* @return an expression that can be parsed to a cron schedule
|
||||
*/
|
||||
String cron() default "";
|
||||
@@ -53,14 +52,12 @@ public @interface Scheduled {
|
||||
/**
|
||||
* Execute the annotated method with a fixed period between the end
|
||||
* of the last invocation and the start of the next.
|
||||
*
|
||||
* @return the delay in milliseconds
|
||||
*/
|
||||
long fixedDelay() default -1;
|
||||
|
||||
/**
|
||||
* Execute the annotated method with a fixed period between invocations.
|
||||
*
|
||||
* @return the period in milliseconds
|
||||
*/
|
||||
long fixedRate() default -1;
|
||||
|
||||
Reference in New Issue
Block a user