Skip to content

Commit

Permalink
Clarify @async documentation
Browse files Browse the repository at this point in the history
Issue: SPR-17458
  • Loading branch information
snicoll committed Nov 6, 2018
1 parent e71ff29 commit 3232825
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/docs/asciidoc/integration.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6681,10 +6681,11 @@ in combination with a custom pointcut.
==== Executor Qualification with `@Async`

By default, when specifying `@Async` on a method, the executor that is used is the
one supplied to the "`annotation-driven`" element, as described earlier. However, you can use the `value`
attribute of the `@Async` annotation when you need to indicate that an
executor other than the default should be used when executing a given method.
The following example shows how to do so:
one <<scheduling-enable-annotation-support,configured when enabling async support>>, i.e.
the "`annotation-driven`" element if you are using XML or your `AsyncConfigurer`
implementation, if any. However, you can use the `value` attribute of the `@Async`
annotation when you need to indicate that an executor other than the default should be
used when executing a given method. The following example shows how to do so:

====
[source,java,indent=0]
Expand Down

0 comments on commit 3232825

Please sign in to comment.