From 1c20fcc1e9ee87b0727b134472832b8b27e9675f Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 12 Nov 2022 11:02:24 +0100 Subject: [PATCH] =?utf8?q?Tags=20f=C3=BCr=20Asciidoc=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/de/juplo/kafka/Application.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/de/juplo/kafka/Application.java b/src/main/java/de/juplo/kafka/Application.java index 13ccd8f..b304fa9 100644 --- a/src/main/java/de/juplo/kafka/Application.java +++ b/src/main/java/de/juplo/kafka/Application.java @@ -23,6 +23,7 @@ public class Application implements ApplicationRunner { for (int i = 0; i < 100; i++) { + // tag::callback[] ListenableFuture> listenableFuture = kafkaTemplate.send("test", Long.toString(i%10), Long.toString(i)); @@ -34,6 +35,7 @@ public class Application implements ApplicationRunner result.getRecordMetadata().partition(), result.getRecordMetadata().offset()), e -> log.error("ERROR sendig message", e)); + // end::callback[] } } -- 2.20.1