|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2018 the original author or authors. |
| 2 | + * Copyright 2002-2019 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
24 | 24 | import java.lang.annotation.Target;
|
25 | 25 |
|
26 | 26 | /**
|
27 |
| - * An annotation that marks a method to be scheduled. Exactly one of |
28 |
| - * the {@link #cron()}, {@link #fixedDelay()}, or {@link #fixedRate()} |
29 |
| - * attributes must be specified. |
| 27 | + * Annotation that marks a method to be scheduled. Exactly one of the |
| 28 | + * {@link #cron}, {@link #fixedDelay}, or {@link #fixedRate} attributes must be |
| 29 | + * specified. |
30 | 30 | *
|
31 | 31 | * <p>The annotated method must expect no arguments. It will typically have
|
32 | 32 | * a {@code void} return type; if not, the returned value will be ignored
|
|
57 | 57 |
|
58 | 58 | /**
|
59 | 59 | * A special cron expression value that indicates a disabled trigger: {@value}.
|
60 |
| - * <p>This is primarily meant for use with ${...} placeholders, allowing for |
61 |
| - * external disabling of corresponding scheduled methods. |
| 60 | + * <p>This is primarily meant for use with <code>${...}</code> placeholders, |
| 61 | + * allowing for external disabling of corresponding scheduled methods. |
62 | 62 | * @since 5.1
|
63 | 63 | */
|
64 | 64 | String CRON_DISABLED = "-";
|
65 | 65 |
|
66 | 66 |
|
67 | 67 | /**
|
68 | 68 | * A cron-like expression, extending the usual UN*X definition to include triggers
|
69 |
| - * on the second, minute, hour, day of month, month and day of week. |
70 |
| - * <p>E.g. {@code "0 * * * * MON-FRI"} means once per minute on weekdays |
71 |
| - * (at the top of the minute - the 0th second). The order read from left to right is: |
| 69 | + * on the second, minute, hour, day of month, month, and day of week. |
| 70 | + * <p>For example, {@code "0 * * * * MON-FRI"} means once per minute on weekdays |
| 71 | + * (at the top of the minute - the 0th second). |
| 72 | + * <p>The fields read from left to right are interpreted as follows. |
72 | 73 | * <ul>
|
73 | 74 | * <li>second</li>
|
74 | 75 | * <li>minute</li>
|
|
77 | 78 | * <li>month</li>
|
78 | 79 | * <li>day of week</li>
|
79 | 80 | * </ul>
|
80 |
| - * <p>The special value {@link #CRON_DISABLED "-"} indicates a disabled cron trigger, |
81 |
| - * primarily meant for externally specified values resolved by a ${...} placeholder. |
| 81 | + * <p>The special value {@link #CRON_DISABLED "-"} indicates a disabled cron |
| 82 | + * trigger, primarily meant for externally specified values resolved by a |
| 83 | + * <code>${...}</code> placeholder. |
82 | 84 | * @return an expression that can be parsed to a cron schedule
|
83 | 85 | * @see org.springframework.scheduling.support.CronSequenceGenerator
|
84 | 86 | */
|
|
129 | 131 |
|
130 | 132 | /**
|
131 | 133 | * Number of milliseconds to delay before the first execution of a
|
132 |
| - * {@link #fixedRate()} or {@link #fixedDelay()} task. |
| 134 | + * {@link #fixedRate} or {@link #fixedDelay} task. |
133 | 135 | * @return the initial delay in milliseconds
|
134 | 136 | * @since 3.2
|
135 | 137 | */
|
136 | 138 | long initialDelay() default -1;
|
137 | 139 |
|
138 | 140 | /**
|
139 | 141 | * Number of milliseconds to delay before the first execution of a
|
140 |
| - * {@link #fixedRate()} or {@link #fixedDelay()} task. |
| 142 | + * {@link #fixedRate} or {@link #fixedDelay} task. |
141 | 143 | * @return the initial delay in milliseconds as a String value, e.g. a placeholder
|
142 | 144 | * or a {@link java.time.Duration#parse java.time.Duration} compliant value
|
143 | 145 | * @since 3.2.2
|
|
0 commit comments