Package org.jboss.resteasy.core
Class SynchronousExecutionContext
java.lang.Object
org.jboss.resteasy.core.AbstractExecutionContext
org.jboss.resteasy.core.SynchronousExecutionContext
- All Implemented Interfaces:
 ResteasyAsynchronousContext
- Version:
 - $Revision: 1 $
 - Author:
 - Bill Burke
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ResteasyAsynchronousResponseprotected booleanprotected Objectprotected final CountDownLatchprotected longprotected TimeUnitprotected booleanFields inherited from class org.jboss.resteasy.core.AbstractExecutionContext
dispatcher, request, response - 
Constructor Summary
ConstructorsConstructorDescriptionSynchronousExecutionContext(SynchronousDispatcher dispatcher, HttpRequest request, HttpResponse response)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidcomplete()executeBlockingIo(RunnableWithException f, boolean hasInterceptors) booleansuspend()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
 
 -