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
ServletConfig
sc
- the ServletConfig
javax.servlet.ServletException
Action service(AtmosphereRequest req, AtmosphereResponse res) throws IOException, javax.servlet.ServletException
req
- the AtmosphereRequest
res
- the AtmosphereResponse
Action
that was manipulated by the AtmosphereHandler
IOException
javax.servlet.ServletException
void action(E actionEvent)
Action
from an ActionEvent
operation like suspend, resume or timed out.actionEvent
- An instance of Action
boolean supportWebSocket()
AsyncSupport complete(E r)
AtmosphereResource
r
- AtmosphereResource
Copyright © 2016. All rights reserved.