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:
259ae2c
)
Implementierung der Header entfernt - Übung kommt jetzt später
author
Kai Moritz
<kai@juplo.de>
Sun, 11 Jun 2023 21:13:45 +0000
(23:13 +0200)
committer
Kai Moritz
<kai@juplo.de>
Mon, 12 Jun 2023 18:40:37 +0000
(20:40 +0200)
src/main/java/de/juplo/kafka/RestProducer.java
patch
|
blob
|
history
diff --git
a/src/main/java/de/juplo/kafka/RestProducer.java
b/src/main/java/de/juplo/kafka/RestProducer.java
index
cecb980
..
73bec5b
100644
(file)
--- a/
src/main/java/de/juplo/kafka/RestProducer.java
+++ b/
src/main/java/de/juplo/kafka/RestProducer.java
@@
-42,12
+42,6
@@
public class RestProducer
value // Value
);
- record.headers().add("source", id.getBytes());
- if (correlationId != null)
- {
- record.headers().add("id", BigInteger.valueOf(correlationId).toByteArray());
- }
-
producer.send(record, (metadata, e) ->
{
long now = System.currentTimeMillis();