From: Kai Moritz Date: Mon, 15 Aug 2022 18:41:26 +0000 (+0200) Subject: Versendete Nachrichten an den neuen Kontrakt angepasst X-Git-Tag: sumup-requests---lvm-2-tage~2 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=a53845885ccfa90fb94dd7696762647a450c4394;p=demos%2Fkafka%2Ftraining Versendete Nachrichten an den neuen Kontrakt angepasst --- diff --git a/src/main/java/de/juplo/kafka/ApplicationRecordHandler.java b/src/main/java/de/juplo/kafka/ApplicationRecordHandler.java index a4b6a8f..eae009c 100644 --- a/src/main/java/de/juplo/kafka/ApplicationRecordHandler.java +++ b/src/main/java/de/juplo/kafka/ApplicationRecordHandler.java @@ -22,12 +22,11 @@ public class ApplicationRecordHandler implements RecordHandler String key = record.key(); int number = record.value(); - send(key, "START"); for (int i = 1; i <= number; i++) { send(key, Integer.toString(i)); } - send(key, "END"); + send(key, "CALCULATE"); } private void send(String key, String value)