polishing

This commit is contained in:
Juergen Hoeller
2010-03-24 10:35:50 +00:00
parent 89755542da
commit 2c2cf32b8a
4 changed files with 30 additions and 25 deletions

View File

@@ -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;