From abfe1e0d9462580aa2651e9efc169cf1313333fa Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 11 Jun 2023 19:39:56 +0200 Subject: [PATCH] =?utf8?q?Tags=20f=C3=BCr=20das=20Codebeispiel=20in=20den?= =?utf8?q?=20Folien=20aus=20der=20Vorlage=20=C3=BCbernommen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/de/juplo/kafka/Application.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/de/juplo/kafka/Application.java b/src/main/java/de/juplo/kafka/Application.java index b304fa9..240f7d0 100644 --- a/src/main/java/de/juplo/kafka/Application.java +++ b/src/main/java/de/juplo/kafka/Application.java @@ -11,6 +11,7 @@ import org.springframework.kafka.support.SendResult; import org.springframework.util.concurrent.ListenableFuture; +// tag::supersimple[] @Slf4j @SpringBootApplication public class Application implements ApplicationRunner @@ -23,6 +24,7 @@ public class Application implements ApplicationRunner { for (int i = 0; i < 100; i++) { + // end::supersimple[] // tag::callback[] ListenableFuture> listenableFuture = kafkaTemplate.send("test", Long.toString(i%10), Long.toString(i)); @@ -36,6 +38,7 @@ public class Application implements ApplicationRunner result.getRecordMetadata().offset()), e -> log.error("ERROR sendig message", e)); // end::callback[] + // tag::supersimple[] } } @@ -44,3 +47,4 @@ public class Application implements ApplicationRunner SpringApplication.run(Application.class, args); } } +// end::supersimple[] -- 2.20.1