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, logger, RESOURCE_EVENT, SUPPORT_SESSION
 
Constructor Summary
GoogleAppEngineCometSupport(AtmosphereServlet.AtmosphereConfig config)
           
 
Method Summary
protected  void suspend(AtmosphereServlet.Action action, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Suspend the connection by blocking the current Thread no more than 30 seconds
 
Methods inherited from class org.atmosphere.container.BlockingIOCometSupport
action, service
 
Methods inherited from class org.atmosphere.cpr.AsynchronousProcessor
cancelled, getContainerName, init, resumed, supportSession, 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
 

Constructor Detail

GoogleAppEngineCometSupport

public GoogleAppEngineCometSupport(AtmosphereServlet.AtmosphereConfig config)
Method Detail

suspend

protected void suspend(AtmosphereServlet.Action action,
                       javax.servlet.http.HttpServletRequest req,
                       javax.servlet.http.HttpServletResponse res)
                throws IOException,
                       javax.servlet.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
javax.servlet.ServletException


Copyright © 2010 SUN Microsystems. All Rights Reserved.