org.jboss.resteasy.spi.ResteasyAsynchronousContext Maven / Gradle / Ivy
package org.jboss.resteasy.spi;
import java.util.concurrent.TimeUnit;
/**
* @author Bill Burke
* @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;
}