Update Consumer config #1844
-
Hi, Is it possible to update consumer config after their instantiation ? In particular, I would like to add interceptor to the config. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
garyrussell
Jun 25, 2021
Replies: 1 comment 2 replies
-
Yes, since version 2.7 you can modify the consumer factory properties. Since version 2.3, you can override/supplement the consumer factory properties via the container properties. In either case, you have to restart the container(s) for it to take effect. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
MrAolen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, since version 2.7 you can modify the consumer factory properties.
spring-kafka/spring-kafka/src/main/java/org/springframework/kafka/core/ConsumerFactory.java
Lines 207 to 214 in 8bcb052
Since version 2.3, you can override/supplement the consumer factory properties via the container properties.
spring-kafka/spring-kafka/src/main/java/org/springframework/kafka/listener/ConsumerProperties.java
Line…