org.atmosphere.container
Class GoogleAppEngineCometSupport

java.lang.Object
  extended by org.atmosphere.cpr.AsynchronousProcessor
      extended by org.atmosphere.container.BlockingIOCometSupport
          extended by org.atmosphere.container.GoogleAppEngineCometSupport
All Implemented Interfaces:
CometSupport<AtmosphereResourceImpl>

public class GoogleAppEngineCometSupport
extends BlockingIOCometSupport

This class gets used when the AtmosphereServlet detected the Google App Engine support. In that case, the GAEDefaultBroadcaster wil be used.

Author:
Jeanfrancois Arcand

Field Summary
 
Fields inherited from class org.atmosphere.container.BlockingIOCometSupport
LATCH, latchs
 
Fields inherited from class org.atmosphere.cpr.AsynchronousProcessor
aliveRequests, cancelledAction, config, logger, timedoutAction
 
Fields inherited from interface org.atmosphere.cpr.CometSupport
MAX_INACTIVE
 
Constructor Summary
GoogleAppEngineCometSupport(AtmosphereServlet.AtmosphereConfig config)
           
 
Method Summary
protected  void suspend(AtmosphereServlet.Action action, HttpServletRequest req, HttpServletResponse res)
          Suspend the connection by blocking the current Thread no more than 30 seconds
 
Methods inherited from class org.atmosphere.container.BlockingIOCometSupport
action, cancelled, service
 
Methods inherited from class org.atmosphere.cpr.AsynchronousProcessor
getContainerName, init, map, resumed, supportSession, supportWebSocket, suspended, timedout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.atmosphere.cpr.CometSupport
getContainerName, init, supportWebSocket
 

Constructor Detail

GoogleAppEngineCometSupport

public GoogleAppEngineCometSupport(AtmosphereServlet.AtmosphereConfig config)
Method Detail

suspend

protected void suspend(AtmosphereServlet.Action action,
                       HttpServletRequest req,
                       HttpServletResponse res)
                throws IOException,
                       ServletException
Suspend the connection by blocking the current Thread no more than 30 seconds

Overrides:
suspend in class BlockingIOCometSupport
Parameters:
action - The AtmosphereServlet.Action
req - the HttpServletRequest
res - the HttpServletResponse
Throws:
IOException
ServletException


Copyright © 2010. All Rights Reserved.