Skip to content

Commit

Permalink
Add explicit note on blocking in case of concurrency limit
Browse files Browse the repository at this point in the history
Closes gh-33873
  • Loading branch information
jhoeller committed Nov 13, 2024
1 parent df376d9 commit 01c85b1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ public void setTaskTerminationTimeout(long timeout) {
* The default of -1 indicates no concurrency limit at all.
* <p>This is the equivalent of a maximum pool size in a thread pool,
* preventing temporary overload of the thread management system.
* However, in contrast to a thread pool with a managed task queue,
* this executor will block the submitter until the task can be
* accepted when the configured concurrency limit has been reached.
* If you prefer queue-based task hand-offs without such blocking,
* consider using a {@code ThreadPoolTaskExecutor} instead.
* @see #UNBOUNDED_CONCURRENCY
* @see org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor#setMaxPoolSize
*/
Expand Down

0 comments on commit 01c85b1

Please sign in to comment.