com.sun.grizzly.comet
Interface NotificationHandler

All Known Subinterfaces:
NotificationHandler
All Known Implementing Classes:
DefaultNotificationHandler, 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
 boolean isBlockingNotification()
          Return true if the invoker of notify() should block when notifying Comet Handlers.
 void notify(CometEvent cometEvent, CometHandler cometHandler)
          Notify a single CometHandler.
 void notify(CometEvent cometEvent, Iterator<CometHandler> iteratorHandlers)
          Notify all CometHandler.
 void setBlockingNotification(boolean blockingNotification)
          Set to true if the invoker of notify() should block when notifying Comet Handlers.
 

Method Detail

isBlockingNotification

boolean isBlockingNotification()
Return true if the invoker of notify() should block when notifying Comet Handlers.


setBlockingNotification

void setBlockingNotification(boolean blockingNotification)
Set to true if the invoker of notify() should block when notifying Comet Handlers.


notify

void notify(CometEvent cometEvent,
            Iterator<CometHandler> iteratorHandlers)
            throws IOException
Notify all CometHandler.

Parameters:
cometEvent - the CometEvent used to notify CometHandler
iteratorHandlers - An iterator over a list of CometHandler
Throws:
IOException

notify

void notify(CometEvent cometEvent,
            CometHandler cometHandler)
            throws IOException
Notify a single CometHandler.

Parameters:
cometEvent - the CometEvent used to notify CometHandler
iteratorHandlers - An iterator over a list of CometHandler
Throws:
IOException


Copyright © 2013 Oracle Corporation. All Rights Reserved.