Package org.glassfish.grizzly.comet
Interface NotificationHandler
- All Known Implementing Classes:
DefaultNotificationHandler
public interface NotificationHandler
This class is invoked when the CometContext.notify is invoked. The CometContext delegate the handling of the
notification process to an implementation of this interface.
- Author:
- Jeanfrancois Arcand
-
Method Summary
Modifier and TypeMethodDescriptionvoidnotify(CometEvent cometEvent, Iterator<CometHandler> iteratorHandlers) Notify allCometHandler.voidnotify(CometEvent cometEvent, CometHandler cometHandler) Notify a singleCometHandler.
-
Method Details
-
notify
Notify allCometHandler.- Parameters:
cometEvent- the CometEvent used to notify CometHandleriteratorHandlers- An iterator over a list of CometHandler- Throws:
IOException
-
notify
Notify a singleCometHandler.- Parameters:
cometEvent- the CometEvent used to notify CometHandlercometHandler- An iterator over a list of CometHandler- Throws:
IOException
-