File tree 1 file changed +5
-0
lines changed
spring-core/src/main/java/org/springframework/core/task
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -196,6 +196,11 @@ public void setTaskTerminationTimeout(long timeout) {
196
196
* The default of -1 indicates no concurrency limit at all.
197
197
* <p>This is the equivalent of a maximum pool size in a thread pool,
198
198
* preventing temporary overload of the thread management system.
199
+ * However, in contrast to a thread pool with a managed task queue,
200
+ * this executor will block the submitter until the task can be
201
+ * accepted when the configured concurrency limit has been reached.
202
+ * If you prefer queue-based task hand-offs without such blocking,
203
+ * consider using a {@code ThreadPoolTaskExecutor} instead.
199
204
* @see #UNBOUNDED_CONCURRENCY
200
205
* @see org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor#setMaxPoolSize
201
206
*/
You can’t perform that action at this time.
0 commit comments