You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-kafka-docs/src/main/asciidoc/changes-since-1.0.adoc
+16
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,20 @@
1
1
[[migration]]
2
+
=== What's New in 2.9 since 2.8
3
+
4
+
[[x29-kafka-client]]
5
+
==== Kafka Client Version
6
+
7
+
This version requires the 3.2.0 `kafka-clients`.
8
+
9
+
[[x29-eh-changes]]
10
+
==== Error Handler Changes
11
+
12
+
The `DefaultErrorHandler` can now be configured to pause the container for one poll and use the remaining results from the previous poll, instead of seeking to the offsets of the remaining records.
13
+
See <<default-eh>> for more information.
14
+
15
+
The `DefaultErrorHandler` now has a `BackOffHandler` property.
16
+
See <<backoff-handlers>> for more information.
17
+
2
18
=== What's New in 2.8 Since 2.7
3
19
4
20
This section covers the changes made from version 2.7 to version 2.8.
Copy file name to clipboardExpand all lines: spring-kafka-docs/src/main/asciidoc/kafka.adoc
+10
Original file line number
Diff line number
Diff line change
@@ -5117,6 +5117,16 @@ The container commits any pending offset commits before calling the error handle
5117
5117
5118
5118
If you are using Spring Boot, you simply need to add the error handler as a `@Bean` and Boot will add it to the auto-configured factory.
5119
5119
5120
+
[[backoff-handlers]]
5121
+
===== Back Off Handlers
5122
+
5123
+
Error handlers such as the <<default-eh>> use a `BackOff` to determine how long to wait before retrying a delivery.
5124
+
Starting with version 2.9, you can configure a custom `BackOffHandler`.
5125
+
The default handler simply suspends the thread until the back off time passes (or the container is stopped).
5126
+
The framework also provides the `ContainerPausingBackOffHandler` which pauses the listener container until the back off time passes and then resumes the container.
5127
+
This is useful when the delays are longer than the `max.poll.interval.ms` consumer property.
5128
+
Note that the resolution of the actual back off time will be affected by the `pollTimeout` container property.
0 commit comments