Skip to content

Commit 2240aff

Browse files
committed
GH-1612: Fix Javadocs
1 parent 49aedaa commit 2240aff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spring-kafka/src/main/java/org/springframework/kafka/event/ConsumerStoppedEvent.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
* An event published when a consumer is stopped. While it is best practice to use
2323
* stateless listeners, you can consume this event to clean up any thread-based resources
2424
* (remove ThreadLocals, destroy thread-scoped beans etc), as long as the context event
25-
* multicaster is not modified to use an async task executor.
25+
* multicaster is not modified to use an async task executor. You can also use this event
26+
* to restart a container that was stopped because a transactional producer was fenced.
2627
*
2728
* @author Gary Russell
2829
* @since 2.2
@@ -40,7 +41,7 @@ public enum Reason {
4041
NORMAL,
4142

4243
/**
43-
* The transactional producer was fenced anf the container
44+
* The transactional producer was fenced and the container
4445
* {@code stopContainerWhenFenced} property is true.
4546
*/
4647
FENCED,

0 commit comments

Comments
 (0)