mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-02 20:49:02 +00:00
DefaultMessageListenerContainer reacts to maxConcurrentConsumers reduction for long-lived tasks (SPR-7075)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3286 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
+3
@@ -989,6 +989,9 @@ public class DefaultMessageListenerContainer extends AbstractPollingMessageListe
|
||||
if (wasWaiting) {
|
||||
activeInvokerCount++;
|
||||
}
|
||||
if (scheduledInvokers.size() > maxConcurrentConsumers) {
|
||||
active = false;
|
||||
}
|
||||
}
|
||||
if (active) {
|
||||
messageReceived = (invokeListener() || messageReceived);
|
||||
|
||||
Reference in New Issue
Block a user