Class SynchronousExecutionContext
java.lang.Object
org.jboss.resteasy.core.AbstractExecutionContext
org.jboss.resteasy.core.SynchronousExecutionContext
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
-
Field Summary
Modifier and TypeFieldDescriptionprotected ResteasyAsynchronousResponse
protected boolean
protected Object
protected final CountDownLatch
protected long
protected TimeUnit
protected boolean
Fields inherited from class org.jboss.resteasy.core.AbstractExecutionContext
dispatcher, request, response
-
Constructor Summary
ConstructorDescriptionSynchronousExecutionContext
(SynchronousDispatcher dispatcher, HttpRequest request, HttpResponse response) -
Method Summary
Modifier and TypeMethodDescriptionvoid
complete()
executeBlockingIo
(RunnableWithException f, boolean hasInterceptors) boolean
suspend()
suspend
(long millis) Methods inherited from class org.jboss.resteasy.core.AbstractExecutionContext
initialRequestEnded, initialRequestStarted, isOnInitialRequest
-
Field Details
-
syncLatch
-
timeout
protected long timeout -
timeoutUnit
-
wasSuspended
protected boolean wasSuspended -
done
protected volatile boolean done -
responseLock
-
asynchronousResponse
-
-
Constructor Details
-
SynchronousExecutionContext
public SynchronousExecutionContext(SynchronousDispatcher dispatcher, HttpRequest request, HttpResponse response)
-
-
Method Details
-
suspend
- Throws:
IllegalStateException
-
suspend
- Throws:
IllegalStateException
-
suspend
- Throws:
IllegalStateException
-
getAsyncResponse
-
isSuspended
public boolean isSuspended() -
complete
public void complete() -
executeBlockingIo
-
executeAsyncIo
-