diff --git a/spring-kafka-docs/src/main/asciidoc/retrytopic.adoc b/spring-kafka-docs/src/main/asciidoc/retrytopic.adoc index cd38c3fa..539ed1fd 100644 --- a/spring-kafka-docs/src/main/asciidoc/retrytopic.adoc +++ b/spring-kafka-docs/src/main/asciidoc/retrytopic.adoc @@ -353,7 +353,7 @@ public RetryTopicConfiguration myRetryTopic(KafkaTemplate templa .newInstance() .fixedBackoff(3000) .maxAttempts(4) - .build(); + .create(template); } ---- ==== @@ -369,7 +369,7 @@ public RetryTopicConfiguration myRetryTopic(KafkaTemplate templa .newInstance() .customBackOff(new MyCustomBackOffPolicy()) .maxAttempts(5) - .build(); + .create(template); } ---- ==== @@ -407,7 +407,7 @@ public RetryTopicConfiguration myRetryTopic(KafkaTemplate templa .fixedBackoff(3000) .maxAttempts(5) .useSingleTopicForFixedDelays() - .build(); + .create(template); } ---- ==== @@ -439,7 +439,7 @@ public RetryTopicConfiguration myRetryTopic(KafkaTemplate templa .newInstance() .fixedBackoff(2000) .timeoutAfter(5000) - .build(); + .create(template); } ---- ====