GRÜN: Implementierung der Erwartungen inkl. Anpassungen an der Anwendung
[demos/kafka/training] / src / main / java / de / juplo / kafka / ApplicationRecordHandler.java
index 828dbc2..93e1297 100644 (file)
@@ -30,12 +30,12 @@ public class ApplicationRecordHandler implements RecordHandler<String, String>
     state.get(partition).addToSum(user, Integer.parseInt(message));
   }
 
-  protected void addPartition(Integer partition, Map<String, Long> state)
+  protected void addPartition(Integer partition, Map<String, AdderResult> state)
   {
     this.state.put(partition, new AdderBusinessLogic(state));
   }
 
-  protected Map<String, Long> removePartition(Integer partition)
+  protected Map<String, AdderResult> removePartition(Integer partition)
   {
     return this.state.remove(partition).getState();
   }