Running async jobs in dropwizard, and polling their status
问题 In dropwizard, I need to implement asynchronous jobs and poll their status. I have 2 endpoints for this in resource: @Path("/jobs") @Component public class MyController { @POST @Produces(MediaType.APPLICATION_JSON) public String startJob(@Valid MyRequest request) { return 1111; } @GET @Path("/{jobId}") @Produces(MediaType.APPLICATION_JSON) public JobStatus getJobStatus(@PathParam("id") String jobId) { return JobStatus.READY; } } I am considering to use quartz to start job, but only single