1 package de.juplo.kafka;
3 import lombok.ToString;
4 import org.springframework.data.annotation.Id;
5 import org.springframework.data.mongodb.core.mapping.Document;
7 import java.util.HashMap;
12 @Document(collection = "statistics")
14 public class StateDocument
18 public long offset = -1l;
19 public Map<String, Long> state;
21 public StateDocument()
25 public StateDocument(Integer partition)
27 this.id = Integer.toString(partition);
28 this.state = new HashMap<>();
33 Map<String, Long> state,
36 this.id = Integer.toString(partition);