|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.grizzly.container.GrizzletCometHandler
public class GrizzletCometHandler
Grizzlet implementation of Grizzly CometHandler
.
Constructor Summary | |
---|---|
GrizzletCometHandler()
|
Method Summary | |
---|---|
void |
attach(GrizzletRequest req)
Attach the GrizzletRequest which is the connection that will be paused/parked. |
Grizzlet |
getGrizzlet()
Return the associated Grizzlet. |
void |
onEvent(CometEvent event)
Invoke the Grizzlet.onPush method in reaction to a CometComet.notify() operations. |
void |
onInitialize(CometEvent event)
Receive CometEvent notification when the underlying
tcp communication is started by the client |
void |
onInterrupt(CometEvent event)
When the CometContext times out, this method will be invoked and the associated Grizzlet invoked. |
void |
onTerminate(CometEvent event)
Invoked when the Grizzly resume the continuation. |
void |
setGrizzlet(Grizzlet grizzlet)
Set the Grizzlet. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GrizzletCometHandler()
Method Detail |
---|
public void attach(GrizzletRequest req)
attach
in interface CometHandler<GrizzletRequest>
public void onEvent(CometEvent event) throws IOException
onEvent
in interface CometHandler<GrizzletRequest>
IOException
public void onInitialize(CometEvent event) throws IOException
CometHandler
CometEvent
notification when the underlying
tcp communication is started by the client
onInitialize
in interface CometHandler<GrizzletRequest>
IOException
public void onInterrupt(CometEvent event) throws IOException
onInterrupt
in interface CometHandler<GrizzletRequest>
IOException
public void onTerminate(CometEvent event) throws IOException
onTerminate
in interface CometHandler<GrizzletRequest>
IOException
public Grizzlet getGrizzlet()
public void setGrizzlet(Grizzlet grizzlet)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |