Skip to content

Commit 343f558

Browse files
committed
GH-2262: Docs
1 parent 17f8f85 commit 343f558

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

Diff for: spring-kafka-docs/src/main/asciidoc/changes-since-1.0.adoc

+16
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
[[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+
218
=== What's New in 2.8 Since 2.7
319

420
This section covers the changes made from version 2.7 to version 2.8.

Diff for: spring-kafka-docs/src/main/asciidoc/kafka.adoc

+10
Original file line numberDiff line numberDiff line change
@@ -5117,6 +5117,16 @@ The container commits any pending offset commits before calling the error handle
51175117

51185118
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.
51195119

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.
5129+
51205130
[[default-eh]]
51215131
===== DefaultErrorHandler
51225132

Diff for: spring-kafka-docs/src/main/asciidoc/whats-new.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ See <<exactly-once>> and https://cwiki.apache.org/confluence/display/KAFKA/KIP-4
2121
==== Global Single Embedded Kafka
2222

2323
The embedded Kafka (`EmbeddedKafkaBroker`) can now be start as a single global instance for the whole test plan.
24-
See <<same-broker-multiple-tests>> for more information.
24+
See <<same-broker-multiple-tests>> for more information.

0 commit comments

Comments
 (0)