public class NettyCometSupport extends AsynchronousProcessor
AsyncSupport
and framework running on top of it, like vert.x and Play!Modifier and Type | Field and Description |
---|---|
static String |
RESUME |
static String |
SUSPEND |
cancelledAction, config, timedoutAction
Constructor and Description |
---|
NettyCometSupport(AtmosphereConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
action(AtmosphereResourceImpl r)
Process an
Action from an ActionEvent operation like suspend, resume or timed out. |
AsyncSupport |
complete(AtmosphereResourceImpl r)
Complete and close the connection associated with an implementation of
AtmosphereResource |
Action |
service(AtmosphereRequest req,
AtmosphereResponse res)
|
boolean |
supportWebSocket()
Return true if this implementation supports the websocket protocol.
|
allowSessionTimeoutRemoval, cancelled, completeLifecycle, endRequest, getContainerName, init, invokeAtmosphereHandler, invokeInterceptors, map, postInterceptors, resumed, shutdown, supportSession, suspended, timedout
public NettyCometSupport(AtmosphereConfig config)
public Action service(AtmosphereRequest req, AtmosphereResponse res) throws IOException, javax.servlet.ServletException
AsyncSupport
req
- the AtmosphereRequest
res
- the AtmosphereResponse
Action
that was manipulated by the AtmosphereHandler
IOException
javax.servlet.ServletException
public void action(AtmosphereResourceImpl r)
AsyncSupport
Action
from an ActionEvent
operation like suspend, resume or timed out.action
in interface AsyncSupport<AtmosphereResourceImpl>
action
in class AsynchronousProcessor
r
- An instance of Action
public boolean supportWebSocket()
AsyncSupport
supportWebSocket
in interface AsyncSupport<AtmosphereResourceImpl>
supportWebSocket
in class AsynchronousProcessor
public AsyncSupport complete(AtmosphereResourceImpl r)
AsyncSupport
AtmosphereResource
complete
in interface AsyncSupport<AtmosphereResourceImpl>
complete
in class AsynchronousProcessor
r
- AtmosphereResource
Copyright © 2016. All rights reserved.