|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
CometHandler
from com.sun.grizzly.comet.CometHandler.
public interface CometHandler<E>
This interface allow Java components part of an HTTP request to be polled
by the Grizzly Asynchronous Request Mechanism. Components that implement
this interface will be notified when another CometHandler
notify them using CometContext.notify
.
With Servlet, it is recommended to attach the HTTPServletResponse
and use this object to push back bytes to the client.
Method Summary | |
---|---|
void |
attach(E attachment)
Deprecated. Attach an intance of E to this class. |
void |
onEvent(CometEvent event)
Deprecated. |
void |
onInitialize(CometEvent event)
Deprecated. |
void |
onInterrupt(CometEvent event)
Deprecated. |
void |
onTerminate(CometEvent event)
Deprecated. |
Methods inherited from interface com.sun.grizzly.comet.CometHandler |
---|
onEvent, onInitialize, onInterrupt, onTerminate |
Method Detail |
---|
void attach(E attachment)
attach
in interface CometHandler<E>
void onEvent(CometEvent event) throws IOException
IOException
void onInitialize(CometEvent event) throws IOException
IOException
void onTerminate(CometEvent event) throws IOException
IOException
void onInterrupt(CometEvent event) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |