Skip to content

Commit d415392

Browse files
TomasJuocepisgaryrussell
authored andcommitted
Update documentation on KafkaListener annotation
Expand id documentation to clarify that it will override the group id specified in the configuration by default.
1 parent aa400fa commit d415392

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spring-kafka/src/main/java/org/springframework/kafka/annotation/KafkaListener.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@
9393
/**
9494
* The unique identifier of the container managing for this endpoint.
9595
* <p>If none is specified an auto-generated one is provided.
96+
* <p>Note: When provided, this value will override the group id property
97+
* in the consumer factory configuration, unless {@link #idIsGroup()}
98+
* is set to false.
9699
* @return the {@code id} for the container managing for this endpoint.
97100
* @see org.springframework.kafka.config.KafkaListenerEndpointRegistry#getListenerContainer(String)
98101
*/

0 commit comments

Comments
 (0)