|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.cpr.AsynchronousProcessor
org.atmosphere.container.BlockingIOCometSupport
public class BlockingIOCometSupport
This class is used when the AtmosphereFramework fails to autodetect
the Servlet Container we are running on.
AsyncSupport implementation uses a blocking approach, meaning
the request thread will be blocked until another Thread invoke the Broadcaster.broadcast(java.lang.Object).
| Field Summary | |
|---|---|
protected static String |
LATCH
|
| Fields inherited from class org.atmosphere.cpr.AsynchronousProcessor |
|---|
cancelledAction, config, timedoutAction |
| Constructor Summary | |
|---|---|
BlockingIOCometSupport(AtmosphereConfig config)
|
|
| Method Summary | |
|---|---|
void |
action(AtmosphereResourceImpl r)
Process an Action from an ActionEvent operation like suspend, resume or timed out. |
Action |
cancelled(AtmosphereRequest req,
AtmosphereResponse res)
All proprietary Comet based Servlet must invoke the cancelled method when the underlying WebServer
detect that the client closed the connection. |
AsyncSupport |
complete(AtmosphereResourceImpl r)
Complete and close the connection associated with an implementation of AtmosphereResource |
Action |
service(AtmosphereRequest req,
AtmosphereResponse res)
Serve the AtmosphereRequest and the AtmosphereResponse and return
the appropriate Action. |
protected void |
suspend(Action action,
AtmosphereRequest req,
AtmosphereResponse res)
Suspend the connection by blocking the current Thread |
| Methods inherited from class org.atmosphere.cpr.AsynchronousProcessor |
|---|
allowSessionTimeoutRemoval, completeLifecycle, endRequest, getContainerName, init, invokeAtmosphereHandler, invokeInterceptors, map, postInterceptors, resumed, shutdown, supportSession, supportWebSocket, suspended, timedout |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String LATCH
| Constructor Detail |
|---|
public BlockingIOCometSupport(AtmosphereConfig config)
| Method Detail |
|---|
public Action service(AtmosphereRequest req,
AtmosphereResponse res)
throws IOException,
javax.servlet.ServletException
AsyncSupportAtmosphereRequest and the AtmosphereResponse and return
the appropriate Action.
req - the AtmosphereRequestres - the AtmosphereResponse
Action that was manipulated by the AtmosphereHandler
IOException
javax.servlet.ServletException
protected void suspend(Action action,
AtmosphereRequest req,
AtmosphereResponse res)
throws IOException,
javax.servlet.ServletException
Thread
action - The Actionreq - the AtmosphereRequestres - the AtmosphereResponse
IOException
javax.servlet.ServletException
public Action cancelled(AtmosphereRequest req,
AtmosphereResponse res)
throws IOException,
javax.servlet.ServletException
AsynchronousProcessorServlet must invoke the cancelled method when the underlying WebServer
detect that the client closed the connection.
cancelled in class AsynchronousProcessorreq - the AtmosphereRequestres - the AtmosphereResponse
IOException
javax.servlet.ServletExceptionpublic void action(AtmosphereResourceImpl r)
AsyncSupportAction from an ActionEvent operation like suspend, resume or timed out.
action in interface AsyncSupport<AtmosphereResourceImpl>action in class AsynchronousProcessorr - An instance of Actionpublic AsyncSupport complete(AtmosphereResourceImpl r)
AsyncSupportAtmosphereResource
complete in interface AsyncSupport<AtmosphereResourceImpl>complete in class AsynchronousProcessorr - AtmosphereResource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||