package org.jboss.resteasy.spi;
import javax.ws.rs.container.AsyncResponse;
import java.util.concurrent.TimeUnit;
Author: Bill Burke Version: $Revision: 1 $
/**
* @author <a href="mailto:bill@burkecentral.com">Bill Burke</a>
* @version $Revision: 1 $
*/
public interface ResteasyAsynchronousContext
{
boolean isSuspended();
ResteasyAsynchronousResponse getAsyncResponse();
ResteasyAsynchronousResponse suspend() throws IllegalStateException;
ResteasyAsynchronousResponse suspend(long millis) throws IllegalStateException;
ResteasyAsynchronousResponse suspend(long time, TimeUnit unit) throws IllegalStateException;
}