Skip to content

Commit 5b17bb2

Browse files
committed
Polish Javadoc for @scheduled
1 parent 85597f2 commit 5b17bb2

File tree

1 file changed

+15
-13
lines changed
  • spring-context/src/main/java/org/springframework/scheduling/annotation

1 file changed

+15
-13
lines changed

spring-context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,9 +24,9 @@
2424
import java.lang.annotation.Target;
2525

2626
/**
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.
3030
*
3131
* <p>The annotated method must expect no arguments. It will typically have
3232
* a {@code void} return type; if not, the returned value will be ignored
@@ -57,18 +57,19 @@
5757

5858
/**
5959
* 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.
6262
* @since 5.1
6363
*/
6464
String CRON_DISABLED = "-";
6565

6666

6767
/**
6868
* 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.
7273
* <ul>
7374
* <li>second</li>
7475
* <li>minute</li>
@@ -77,8 +78,9 @@
7778
* <li>month</li>
7879
* <li>day of week</li>
7980
* </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.
8284
* @return an expression that can be parsed to a cron schedule
8385
* @see org.springframework.scheduling.support.CronSequenceGenerator
8486
*/
@@ -129,15 +131,15 @@
129131

130132
/**
131133
* 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.
133135
* @return the initial delay in milliseconds
134136
* @since 3.2
135137
*/
136138
long initialDelay() default -1;
137139

138140
/**
139141
* 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.
141143
* @return the initial delay in milliseconds as a String value, e.g. a placeholder
142144
* or a {@link java.time.Duration#parse java.time.Duration} compliant value
143145
* @since 3.2.2

0 commit comments

Comments
 (0)