|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.grizzly.messagesbus.MessagesBusCometHandler
public class MessagesBusCometHandler
Grizzly Comet CometHandler which push data to all suspended connection
managed by MessagesBus
| Constructor Summary | |
|---|---|
protected |
MessagesBusCometHandler(CometContext cometContext)
Create a new CometHandler associated with CometContext |
protected |
MessagesBusCometHandler(CometContext cometContext,
MessagesBus.CometType cometType)
Create a new CometHandler associated with CometContext,
supported the MessagesBus#CometType. |
| Method Summary | |
|---|---|
void |
attach(HttpServletResponse response)
The HttpServletResponse used to push back data, |
void |
onEvent(CometEvent event)
Invoked when a CometContext.notify(com.sun.grizzly.comet.CometEvent, int, java.nio.channels.SelectionKey) is executing a push. |
void |
onInitialize(CometEvent event)
Not used. |
void |
onInterrupt(CometEvent event)
Invoked when MessagesBus.expirationDelay value expire. |
void |
onTerminate(CometEvent event)
Never invoked as Grizly Comet CometContext API
aren't exposed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected MessagesBusCometHandler(CometContext cometContext)
CometHandler associated with CometContext
cometContext -
protected MessagesBusCometHandler(CometContext cometContext,
MessagesBus.CometType cometType)
CometHandler associated with CometContext,
supported the MessagesBus#CometType.
cometContext - | Method Detail |
|---|
public void attach(HttpServletResponse response)
HttpServletResponse used to push back data,
attach in interface CometHandler<HttpServletResponse>response -
public void onEvent(CometEvent event)
throws IOException
CometContext.notify(com.sun.grizzly.comet.CometEvent, int, java.nio.channels.SelectionKey) is executing a push.
onEvent in interface CometHandler<HttpServletResponse>event -
IOException
public void onInitialize(CometEvent event)
throws IOException
onInitialize in interface CometHandler<HttpServletResponse>event -
IOException
public void onInterrupt(CometEvent event)
throws IOException
MessagesBus.expirationDelay value expire. The
connection will be automatically resumed.
onInterrupt in interface CometHandler<HttpServletResponse>event -
IOException
public void onTerminate(CometEvent event)
throws IOException
CometContext API
aren't exposed.
onTerminate in interface CometHandler<HttpServletResponse>IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||