1 package de.juplo.kafka;
3 import lombok.RequiredArgsConstructor;
4 import org.apache.kafka.common.TopicPartition;
5 import org.springframework.web.bind.annotation.GetMapping;
6 import org.springframework.web.bind.annotation.PostMapping;
7 import org.springframework.web.bind.annotation.RestController;
10 import java.util.concurrent.ExecutionException;
14 @RequiredArgsConstructor
15 public class DriverController
17 private final EndlessConsumer consumer;
27 public void stop() throws ExecutionException, InterruptedException
34 public Map<TopicPartition, PartitionStatistics> seen()
36 return consumer.getSeen();