Verbesserte Tests und Korrekturen gemerged: stored-offsets -> stored-state
[demos/kafka/training] / src / main / java / de / juplo / kafka / StateDocument.java
index bb1c701..b37b8a9 100644 (file)
@@ -14,7 +14,6 @@ public class StateDocument
 {
   @Id
   public String id;
-  public long offset = -1l;
   public Map<String, Long> state;
 
   public StateDocument()
@@ -27,10 +26,9 @@ public class StateDocument
     this.state = new HashMap<>();
   }
 
-  public StateDocument(Integer partition, Map<String, Long> state, long offset)
+  public StateDocument(Integer partition, Map<String, Long> state)
   {
     this.id = Integer.toString(partition);
     this.state = state;
-    this.offset = offset;
   }
 }