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/retrytopic.adoc
+1-33Lines changed: 1 addition & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -328,42 +328,10 @@ public DefaultDestinationTopicResolver topicResolver(ApplicationContext applicat
328
328
329
329
NOTE: To disable fatal exceptions' classification, clear the default list using the `setClassifications` method in `DefaultDestinationTopicResolver`.
330
330
331
-
332
-
[[retry-topic-combine-blocking]]
333
-
===== Combine blocking and non-blocking retries
334
-
335
-
Starting in 2.8.3 you can configure the framework to use both blocking and non-blocking retries in conjunction.
336
-
For example, you can have a set of exceptions that would likely trigger errors on the next records as well, such as `DatabaseAccessException`, so you can retry the same record a few times before sending it to the retry topic, or straight to the DLT.
337
-
338
-
You can configure the blocking retries as follows:
NOTE: If you set a blocking retry back off, the default is to retry on all exceptions except the fatal ones in <<default-eh>>.
358
-
You can add or remove exceptions using the `addNotRetryableException` and `removeNotRetryableException` methods in the `ListenerContainerFactoryConfigurer`.
359
-
360
-
NOTE: In combination with the global retryable topic's fatal classification, you can configure the framework for any behavior you'd like, such as having some exceptions trigger both blocking and non-blocking retries, trigger only one kind or the other, or go straight to the DLT without retries of any kind.
361
-
362
-
363
331
[[retry-topic-combine-blocking]]
364
332
===== Combine blocking and non-blocking retries
365
333
366
-
Starting in 2.8.3 you can configure the framework to use both blocking and non-blocking retries in conjunction.
334
+
Starting in 2.8.4 you can configure the framework to use both blocking and non-blocking retries in conjunction.
367
335
For example, you can have a set of exceptions that would likely trigger errors on the next records as well, such as `DatabaseAccessException`, so you can retry the same record a few times before sending it to the retry topic, or straight to the DLT.
368
336
369
337
To configure blocking retries you just need to add the exceptions you want to retry through the `addRetryableExceptions` method as follows.
0 commit comments