From: Kai Moritz Date: Sat, 12 Nov 2022 10:02:24 +0000 (+0100) Subject: Tags für Asciidoc hinzugefügt X-Git-Tag: supersimple-producer---lvm-2-tage--easy-path~2 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=1c20fcc1e9ee87b0727b134472832b8b27e9675f;p=demos%2Fkafka%2Ftraining Tags für Asciidoc hinzugefügt --- 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[] } }