Skip to content

Commit

Permalink
Fixed cron trigger example in reference documentation
Browse files Browse the repository at this point in the history
Issue: SPR-10474
  • Loading branch information
jhoeller committed Oct 28, 2015
1 parent 6d36930 commit f6dd7e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/asciidoc/integration.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6404,13 +6404,13 @@ default). Here you can see what methods are available for `Trigger` implementati

Spring provides two implementations of the `Trigger` interface. The most interesting one
is the `CronTrigger`. It enables the scheduling of tasks based on cron expressions. For
example the following task is being scheduled to run 15 minutes past each hour but only
example, the following task is being scheduled to run 15 minutes past each hour but only
during the 9-to-5 "business hours" on weekdays.

[source,java,indent=0]
[subs="verbatim"]
----
scheduler.schedule(task, new CronTrigger("* 15 9-17 * * MON-FRI"));
scheduler.schedule(task, new CronTrigger("0 15 9-17 * * MON-FRI"));
----

The other out-of-the-box implementation is a `PeriodicTrigger` that accepts a fixed
Expand All @@ -6422,7 +6422,7 @@ fixed-delay, those methods should be used directly whenever possible. The value
the `Trigger` abstraction. For example, it may be convenient to allow periodic triggers,
cron-based triggers, and even custom trigger implementations to be used interchangeably.
Such a component could take advantage of dependency injection so that such `Triggers`
could be configured externally.
could be configured externally and therefore easily modified or extended.



Expand Down

0 comments on commit f6dd7e4

Please sign in to comment.