Skip to content

Commit

Permalink
Improve @scheduled Javadoc regarding cron element order
Browse files Browse the repository at this point in the history
Closes gh-22777
  • Loading branch information
ottlinger authored and sbrannen committed Apr 9, 2019
1 parent eb97169 commit 85597f2
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,17 @@

/**
* A cron-like expression, extending the usual UN*X definition to include triggers
* on the second as well as minute, hour, day of month, month and day of week.
* on the second, minute, hour, day of month, month and day of week.
* <p>E.g. {@code "0 * * * * MON-FRI"} means once per minute on weekdays
* (at the top of the minute - the 0th second).
* (at the top of the minute - the 0th second). The order read from left to right is:
* <ul>
* <li>second</li>
* <li>minute</li>
* <li>hour</li>
* <li>day of month</li>
* <li>month</li>
* <li>day of week</li>
* </ul>
* <p>The special value {@link #CRON_DISABLED "-"} indicates a disabled cron trigger,
* primarily meant for externally specified values resolved by a ${...} placeholder.
* @return an expression that can be parsed to a cron schedule
Expand Down

0 comments on commit 85597f2

Please sign in to comment.