What is the purpose of asynchronous JAX-RS
问题 I'm reading "RESTful Java with JAX-RS 2.0" book. I'm completely confused with asynchronous JAX-RS, so I ask all questions in one. The book writes asynchronous server like this: @Path("/customers") public class CustomerResource { @GET @Path("{id}") @Produces(MediaType.APPLICATION_XML) public void getCustomer(@Suspended final AsyncResponse asyncResponse, @Context final Request request, @PathParam(value = "id") final int id) { new Thread() { @Override public void run() { asyncResponse.resume