Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions spring-kafka-docs/src/main/asciidoc/retrytopic.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ The framework provides a few strategies for working with DLTs. You can provide a

===== Dlt Processing Method

You can specify the method used to process the Dlt for the topic, as well as the behavior if that processing fails.
You can specify the method used to process the DLT for the topic, as well as the behavior if that processing fails.

To do that you can use the `@DltHandler` annotation in a method of the class with the `@RetryableTopic` annotation(s).
Note that the same method will be used for all the `@RetryableTopic` annotated methods within that class.
Expand Down Expand Up @@ -870,7 +870,7 @@ The DLT handler method can also be provided through the RetryTopicConfigurationB
public RetryTopicConfiguration myRetryTopic(KafkaTemplate<Integer, MyPojo> template) {
return RetryTopicConfigurationBuilder
.newInstance()
.dltProcessor("myCustomDltProcessor", "processDltMessage")
.dltHandlerMethod("myCustomDltProcessor", "processDltMessage")
.create(template);
}

Expand Down Expand Up @@ -923,7 +923,7 @@ public void processMessage(MyPojo message) {
public RetryTopicConfiguration myRetryTopic(KafkaTemplate<Integer, MyPojo> template) {
return RetryTopicConfigurationBuilder
.newInstance()
.dltProcessor(MyCustomDltProcessor.class, "processDltMessage")
.dltHandlerMethod("myCustomDltProcessor", "processDltMessage")
.doNotRetryOnDltFailure()
.create(template);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
* public RetryTopicConfiguration otherRetryTopic(KafkaTemplate&lt;Integer, MyPojo&gt; template) {
* return RetryTopicConfigurationBuilder
* .newInstance()
* .dltProcessor(MyCustomDltProcessor.class, "processDltMessage")
* .dltHandlerMethod("myCustomDltProcessor", "processDltMessage")
* .create(template);
* }</code>
*
Expand Down