import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestController;
+import java.util.HashMap;
import java.util.Map;
-import java.util.concurrent.ExecutionException;
@RestController
}
@PostMapping("stop")
- public void stop() throws ExecutionException, InterruptedException
+ public void stop()
{
consumer.stop();
}
@GetMapping("seen")
public Map<Integer, Map<String, Long>> seen()
{
- return consumer.getSeen();
+ return new HashMap<>();
}
@ExceptionHandler