use of org.jboss.as.quickstarts.managedexecutorservice.concurrency.DeleteTask in project quickstart by wildfly.
the class ProductResourceRESTService method deleteAllProducts.
@DELETE
public Response deleteAllProducts() {
DeleteTask dt = deleteTaskInstance.get();
// Delete all Products on a separated Thread
log.info("Will delete all Products on other Thread");
managedExecutorService.execute(dt);
log.info("Returning response");
return Response.ok().build();
}
Aggregations