You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, we have only one constructor there at the moment:
/**
* Construct an instance with the supplied configuration properties.
* The topic partitions are distributed evenly across the delegate
* {@link KafkaMessageListenerContainer}s.
* @param consumerFactory the consumer factory.
* @param containerProperties the container properties.
*/
public ConcurrentMessageListenerContainer(ConsumerFactory<? super K, ? super V> consumerFactory,
ContainerProperties containerProperties) {
The rest of the logic is done against that ContainerProperties:
I believe indeed in some old version we had different constructor with those assigned partitions.
Now the doc has to be fixed.
I guess that For the first constructor, sentence could be changed to:
If the container properties are configured for topics (or topic pattern), Kafka distributes the partitions across the consumers using its group management capabilities.
Using ConcurrentMessageListenerContainer section starts with:
Then just below:
Probably there were multiple constructors in older versions, but there is a single constructor now.
The text was updated successfully, but these errors were encountered: