1 package de.juplo.kafka;
3 import lombok.RequiredArgsConstructor;
4 import org.springframework.http.HttpStatus;
5 import org.springframework.web.bind.annotation.ExceptionHandler;
6 import org.springframework.web.bind.annotation.GetMapping;
7 import org.springframework.web.bind.annotation.PostMapping;
8 import org.springframework.web.bind.annotation.ResponseStatus;
9 import org.springframework.web.bind.annotation.RestController;
11 import java.util.HashMap;
13 import java.util.concurrent.ExecutionException;
17 @RequiredArgsConstructor
18 public class DriverController
26 public void stop() throws ExecutionException, InterruptedException
31 public Map<Integer, Map<String, Long>> seen()
33 return new HashMap<>();
37 @ResponseStatus(HttpStatus.BAD_REQUEST)
38 public ErrorResponse illegalStateException(IllegalStateException e)
40 return new ErrorResponse(e.getMessage(), HttpStatus.BAD_REQUEST.value());