Top Description Methods
org.glassfish.grizzly.comet

public Interface NotificationHandler

Known Direct Implementers
org.glassfish.grizzly.comet.DefaultNotificationHandler
Imports
java.io.IOException, java.util.Iterator

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 TypeMethod and Description
public void
notify(CometEvent<E>
the CometEvent used to notify CometHandler
cometEvent
,
Iterator<CometHandler<E>>
An iterator over a list of CometHandler
iteratorHandlers
)

Notify all CometHandler.

public void
notify(CometEvent<E>
the CometEvent used to notify CometHandler
cometEvent
,
CometHandler<E>
An iterator over a list of CometHandler
cometHandler
)

Notify a single CometHandler.

Method Detail

notifyback to summary
public void notify(CometEvent<E> cometEvent, Iterator<CometHandler<E>> iteratorHandlers) throws IOException

Notify all CometHandler.

Parameters
cometEvent:CometEvent<E>

the CometEvent used to notify CometHandler

iteratorHandlers:Iterator<CometHandler<E>>

An iterator over a list of CometHandler

notifyback to summary
public void notify(CometEvent<E> cometEvent, CometHandler<E> cometHandler) throws IOException

Notify a single CometHandler.

Parameters
cometEvent:CometEvent<E>

the CometEvent used to notify CometHandler

cometHandler:CometHandler<E>

An iterator over a list of CometHandler