Generated by
JDiff

org.springframework.jms.listener Documentation Differences

This file contains all the changes in documentation in the package org.springframework.jms.listener as colored differences. Deletions are shown like this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a <code> tag will cause all subsequent paragraphs to be displayed differently.

Class DefaultMessageListenerContainer, void setConcurrentConsumers(int)

Specify the number of concurrent consumers to create. Default is 1.

Specifying a higher value for this setting will increase the standard level of scheduled concurrent consumers at runtime: This is effectively the minimum number of concurrent consumers which will be scheduled at any given time. This is a static setting; for dynamic scaling, consider specifying the "maxConcurrentConsumers" setting instead.

Raising the number of concurrent consumers is recommendable in order to scale the consumption of messages coming in from a queue. However, note that any ordering guarantees are lost once multiple consumers are registered. In general, stick with 1 consumer for low-volume queues.

Do not raise the number of concurrent consumers for a topic, unless vendor-specific setup measures clearly allow for it. ThisWith regular setup, this would lead to concurrent consumptionconsumption of the same message, which is hardly ever desirable.

This setting can be modified at runtime, for example through JMX. @see #setMaxConcurrentConsumers

Class DefaultMessageListenerContainer, void setMaxConcurrentConsumers(int)

Specify the maximum number of concurrent consumers to create. Default is 1.

If this setting is higher than "concurrentConsumers", the listener container will dynamically schedule new consumers at runtime, provided that enough incoming messages are encountered. Once the load goes down again, the number of consumers will be reduced to the standard level ("concurrentConsumers") again.

Raising the number of concurrent consumers is recommendable in order to scale the consumption of messages coming in from a queue. However, note that any ordering guarantees are lost once multiple consumers are registered. In general, stick with 1 consumer for low-volume queues.

Do not raise the number of concurrent consumers for a topic, unless vendor-specific setup measures clearly allow for it. ThisWith regular setup, this would lead to concurrent consumptionconsumption of the same message, which is hardly ever desirable.

This setting can be modified at runtime, for example through JMX. @see #setConcurrentConsumers