Class SynchronousExecutionContext.SynchronousAsynchronousResponse
java.lang.Object
org.jboss.resteasy.core.AbstractAsynchronousResponse
org.jboss.resteasy.core.SynchronousExecutionContext.SynchronousAsynchronousResponse
- All Implemented Interfaces:
jakarta.ws.rs.container.AsyncResponse
,ResourceMethodInvokerAwareResponse
,ResteasyAsynchronousResponse
- Enclosing class:
SynchronousExecutionContext
protected class SynchronousExecutionContext.SynchronousAsynchronousResponse
extends AbstractAsynchronousResponse
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
Fields inherited from class org.jboss.resteasy.core.AbstractAsynchronousResponse
annotations, asyncWriterInterceptors, completionCallbacks, contextDataMap, dispatcher, method, request, response, responseFilters, timeoutHandler, writerInterceptors
Fields inherited from interface jakarta.ws.rs.container.AsyncResponse
NO_TIMEOUT
-
Constructor Summary
ConstructorDescriptionSynchronousAsynchronousResponse
(SynchronousDispatcher dispatcher, HttpRequest request, HttpResponse response) -
Method Summary
Methods inherited from class org.jboss.resteasy.core.AbstractAsynchronousResponse
completionCallbacks, getAnnotations, getAsyncWriterInterceptors, getMethod, getResponseFilters, getWriterInterceptors, internalResume, internalResume, 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
-
complete
public void complete() -
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()
-