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:
parent
64228e966c
commit
75c9ff2662
|
|
@ -989,6 +989,9 @@ public class DefaultMessageListenerContainer extends AbstractPollingMessageListe
|
|||
if (wasWaiting) {
|
||||
activeInvokerCount++;
|
||||
}
|
||||
if (scheduledInvokers.size() > maxConcurrentConsumers) {
|
||||
active = false;
|
||||
}
|
||||
}
|
||||
if (active) {
|
||||
messageReceived = (invokeListener() || messageReceived);
|
||||
|
|
|
|||
Loading…
Reference in New Issue