FileDocCategorySizeDatePackage
NotificationHandler.javaAPI DocGlassfish v2 API3354Fri May 04 22:37:08 BST 2007com.sun.enterprise.web.connector.grizzly.comet

NotificationHandler

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

Fields Summary
Constructors Summary
Methods Summary
public booleanisBlockingNotification()
Return true if the invoker of notify() should block when notifying Comet Handlers.

public voidnotify(CometEvent cometEvent, java.util.Iterator iteratorHandlers)
Notify all CometHandler.

param
cometEvent the CometEvent used to notify CometHandler
param
iteratorHandlers An iterator over a list of CometHandler

public voidnotify(CometEvent cometEvent, CometHandler cometHandler)
Notify a single CometHandler.

param
cometEvent the CometEvent used to notify CometHandler
param
iteratorHandlers An iterator over a list of CometHandler

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