com.sun.grizzly.cometd
Class CometdNotificationHandler

java.lang.Object
  extended by com.sun.grizzly.comet.DefaultNotificationHandler
      extended by com.sun.grizzly.cometd.CometdNotificationHandler
All Implemented Interfaces:
NotificationHandler

public class CometdNotificationHandler
extends DefaultNotificationHandler

Customized NotificationHandler that isolate notification to subscribed channel.

Author:
Jeanfrancois Arcand

Field Summary
 
Fields inherited from class com.sun.grizzly.comet.DefaultNotificationHandler
blockingNotification, pipeline
 
Constructor Summary
CometdNotificationHandler()
           
 
Method Summary
protected  void notify0(CometEvent cometEvent, Iterator<CometHandler> iteratorHandlers)
          Notify only client subscribed to the active channel.
 
Methods inherited from class com.sun.grizzly.comet.DefaultNotificationHandler
isBlockingNotification, notify, notify, notify0, setBlockingNotification, setPipeline
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CometdNotificationHandler

public CometdNotificationHandler()
Method Detail

notify0

protected void notify0(CometEvent cometEvent,
                       Iterator<CometHandler> iteratorHandlers)
                throws IOException
Notify only client subscribed to the active channel.

Overrides:
notify0 in class DefaultNotificationHandler
Throws:
IOException


Copyright © 2011 SUN Microsystems. All Rights Reserved.