import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import java.util.concurrent.ExecutionException;
{
consumer.stop();
}
+
+
+ @PostMapping("seek")
+ public void seek(@RequestBody long offset)
+ {
+ consumer.seek(offset);
+ }
}