It allows you to asynchronously send a response in another thread. @author Bill Burke @version $Revision: 1 $
3435363738394041424344
{ final ResteasyAsynchronousContext asynchronousContext = request.getAsyncContext(); final ResteasyAsynchronousResponse asynchronousResponse = asynchronousContext.suspend(suspend); ResourceMethodInvoker invoker = (ResourceMethodInvoker)request.getAttribute(ResourceMethodInvoker.class.getName()); invoker.initializeAsync(asynchronousResponse); return new AsynchronousResponse() { @Override public void setResponse(Response response) { asynchronousResponse.resume(response);