package de.juplo.kafka;
import lombok.RequiredArgsConstructor;
+import org.apache.kafka.common.TopicPartition;
+import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
+import java.util.Map;
import java.util.concurrent.ExecutionException;
{
consumer.stop();
}
+
+
+ @GetMapping("seen")
+ public Map<TopicPartition, PartitionStatistics> seen()
+ {
+ return consumer.getSeen();
+ }
}