projects
/
demos
/
kafka
/
training
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
076be1f
)
Asciidoc-Tags korrigiert
spring/supersimple-producer---2023-10-signal
author
Kai Moritz
<kai@juplo.de>
Sun, 18 Jun 2023 10:16:03 +0000
(12:16 +0200)
committer
Kai Moritz
<kai@juplo.de>
Sun, 18 Jun 2023 10:20:37 +0000
(12:20 +0200)
src/main/java/de/juplo/kafka/Application.java
patch
|
blob
|
history
diff --git
a/src/main/java/de/juplo/kafka/Application.java
b/src/main/java/de/juplo/kafka/Application.java
index
240f7d0
..
7a23da9
100644
(file)
--- a/
src/main/java/de/juplo/kafka/Application.java
+++ b/
src/main/java/de/juplo/kafka/Application.java
@@
-27,7
+27,9
@@
public class Application implements ApplicationRunner
// end::supersimple[]
// tag::callback[]
ListenableFuture<SendResult<String, String>> listenableFuture =
+ // tag::supersimple[]
kafkaTemplate.send("test", Long.toString(i%10), Long.toString(i));
+ // end::supersimple[]
listenableFuture.addCallback(
result -> log.info(