File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
spring-kafka/src/main/java/org/springframework/kafka/event Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 22
22
* An event published when a consumer is stopped. While it is best practice to use
23
23
* stateless listeners, you can consume this event to clean up any thread-based resources
24
24
* (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.
26
27
*
27
28
* @author Gary Russell
28
29
* @since 2.2
@@ -40,7 +41,7 @@ public enum Reason {
40
41
NORMAL ,
41
42
42
43
/**
43
- * The transactional producer was fenced anf the container
44
+ * The transactional producer was fenced and the container
44
45
* {@code stopContainerWhenFenced} property is true.
45
46
*/
46
47
FENCED ,
You can’t perform that action at this time.
0 commit comments