1 package de.juplo.kafka;
3 import lombok.RequiredArgsConstructor;
4 import org.springframework.web.bind.annotation.ExceptionHandler;
5 import org.springframework.web.bind.annotation.PostMapping;
6 import org.springframework.web.bind.annotation.RestController;
8 import java.util.concurrent.ExecutionException;
12 @RequiredArgsConstructor
13 public class DriverController
15 private final EndlessProducer producer;
25 public void stop() throws ExecutionException, InterruptedException
31 public ErrorResponse illegalStateException(IllegalStateException e)
33 return new ErrorResponse(e.getMessage(), 400);