Package org.jboss.resteasy.core
Class SynchronousExecutionContext.SynchronousAsynchronousResponse
java.lang.Object
org.jboss.resteasy.core.AbstractAsynchronousResponse
org.jboss.resteasy.core.SynchronousExecutionContext.SynchronousAsynchronousResponse
- All Implemented Interfaces:
javax.ws.rs.container.AsyncResponse
,ResteasyAsynchronousResponse
- Enclosing class:
SynchronousExecutionContext
protected class SynchronousExecutionContext.SynchronousAsynchronousResponse
extends AbstractAsynchronousResponse
-
Field Summary
FieldsFields inherited from class org.jboss.resteasy.core.AbstractAsynchronousResponse
annotations, completionCallbacks, contextDataMap, dispatcher, method, request, response, responseFilters, timeoutHandler, writerInterceptors
Fields inherited from interface javax.ws.rs.container.AsyncResponse
NO_TIMEOUT
-
Constructor Summary
ConstructorsConstructorDescriptionSynchronousAsynchronousResponse
(SynchronousDispatcher dispatcher, HttpRequest request, HttpResponse response) -
Method Summary
Modifier and TypeMethodDescriptionboolean
cancel()
boolean
cancel
(int retryAfter) boolean
void
Callback by the initial http request thread.boolean
boolean
isDone()
boolean
boolean
boolean
boolean
setTimeout
(long time, TimeUnit unit) Methods inherited from class org.jboss.resteasy.core.AbstractAsynchronousResponse
completionCallbacks, getAnnotations, getMethod, getResponseFilters, getWriterInterceptors, internalResume, internalResume, register, register, register, register, setAnnotations, setMethod, setResponseFilters, setTimeoutHandler, setWriterInterceptors
-
Field Details
-
cancelled
protected boolean cancelled
-
-
Constructor Details
-
SynchronousAsynchronousResponse
public SynchronousAsynchronousResponse(SynchronousDispatcher dispatcher, HttpRequest request, HttpResponse response)
-
-
Method Details
-
resume
-
resume
- Throws:
IllegalStateException
-
initialRequestThreadFinished
public void initialRequestThreadFinished()Description copied from interface:ResteasyAsynchronousResponse
Callback by the initial http request thread. It is used to help simulate suspend/resume asynchronous semantics in containers that do not support asychronous HTTP. This method is a no-op in environments that support async HTTP. -
setTimeout
- Throws:
IllegalStateException
-
cancel
public boolean cancel() -
cancel
public boolean cancel(int retryAfter) -
cancel
-
isSuspended
public boolean isSuspended() -
isCancelled
public boolean isCancelled() -
isDone
public boolean isDone()
-