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:
05ff677
)
Tags für Asciidoc hinzugefügt
author
Kai Moritz
<kai@juplo.de>
Sat, 12 Nov 2022 10:02:24 +0000
(11:02 +0100)
committer
Kai Moritz
<kai@juplo.de>
Sat, 12 Nov 2022 11:33:20 +0000
(12:33 +0100)
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
13ccd8f
..
b304fa9
100644
(file)
--- 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<SendResult<String, String>> 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[]
}
}