From a53845885ccfa90fb94dd7696762647a450c4394 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Mon, 15 Aug 2022 20:41:26 +0200 Subject: [PATCH] Versendete Nachrichten an den neuen Kontrakt angepasst --- src/main/java/de/juplo/kafka/ApplicationRecordHandler.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) -- 2.20.1