public interface AsyncSupport<E extends AtmosphereResource>
AtmosphereFramework. If the AtmosphereFramework fail to detect the AsyncSupport, it will
use a blocking thread approach to emulate Comet using the BlockingIOCometSupport.
Framework designers or Atmosphere application developers can also add their own implementation of that class by
referencing their class within the atmosphere.xml file:
<<atmosphere-handler ... comet-support="your.class.name">
| Modifier and Type | Method and Description |
|---|---|
void |
action(E actionEvent)
Process an
Action from an ActionEvent operation like suspend, resume or timed out. |
AsyncSupport |
complete(E r)
Complete and close the connection associated with an implementation of
AtmosphereResource |
String |
getContainerName()
Return the name of the Java Web Server.
|
void |
init(javax.servlet.ServletConfig sc)
Initialize the WebServer using the
ServletConfig |
Action |
service(AtmosphereRequest req,
AtmosphereResponse res)
|
boolean |
supportWebSocket()
Return true if this implementation supports the websocket protocol.
|
String getContainerName()
void init(javax.servlet.ServletConfig sc) throws javax.servlet.ServletException
ServletConfigsc - the ServletConfigjavax.servlet.ServletExceptionAction service(AtmosphereRequest req, AtmosphereResponse res) throws IOException, javax.servlet.ServletException
req - the AtmosphereRequestres - the AtmosphereResponseAction that was manipulated by the AtmosphereHandlerIOExceptionjavax.servlet.ServletExceptionvoid action(E actionEvent)
Action from an ActionEvent operation like suspend, resume or timed out.actionEvent - An instance of Actionboolean supportWebSocket()
AsyncSupport complete(E r)
AtmosphereResourcer - AtmosphereResourceCopyright © 2016. All rights reserved.