Skip to content

GH-3120 Align KafkaListenerContainerCustomizer with DLQ customizer de…#3210

Open
wadhwaroh-lang wants to merge 2 commits into
spring-cloud:mainfrom
wadhwaroh-lang:fix/3120-kafka-listener-customizer
Open

GH-3120 Align KafkaListenerContainerCustomizer with DLQ customizer de…#3210
wadhwaroh-lang wants to merge 2 commits into
spring-cloud:mainfrom
wadhwaroh-lang:fix/3120-kafka-listener-customizer

Conversation

@wadhwaroh-lang

Copy link
Copy Markdown
Contributor

Summary

  • Align KafkaListenerContainerCustomizer with ListenerContainerWithDlqAndRetryCustomizer by making the 3-arg configure() a no-op default and keeping the 4-arg method abstract
  • Enables implementing the customizer as a lambda that receives ExtendedConsumerProperties
  • Update docs and add a focused lambda coverage test

Fixes #3120

Test plan

  • ./mvnw -pl binders/kafka-binder/spring-cloud-stream-binder-kafka -am test -Dtest=KafkaListenerContainerCustomizerTests -Dsurefire.failIfNoSpecifiedTests=false

…ustomizer defaults

Make the three-argument configure() a no-op default and keep the
four-argument method abstract so the interface can be implemented as a
lambda that receives ExtendedConsumerProperties, matching
ListenerContainerWithDlqAndRetryCustomizer.

Signed-off-by: wadhwaroh-lang <wadhwa.roh@gmail.com>
Apache's Maven CDN no longer hosts 3.8.9, so jvalkeal/setup-maven fails
before tests run. Point the workflow at the currently published 3.9.16.

Signed-off-by: wadhwaroh-lang <wadhwa.roh@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

KafkaListenerContainerCustomizer should implement ListenerContainerCustomizer’s only method

1 participant