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 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 ,
You can’t perform that action at this time.
0 commit comments