Uses of Interface
com.sun.grizzly.comet.CometHandler

Packages that use CometHandler
com.sun.grizzly.comet   
com.sun.grizzly.comet.concurrent   
com.sun.grizzly.comet.handlers   
 

Uses of CometHandler in com.sun.grizzly.comet
 

Fields in com.sun.grizzly.comet declared as CometHandler
protected  CometHandler CometTask.cometHandler
          The CometHandler associated with this task.
 

Fields in com.sun.grizzly.comet with type parameters of type CometHandler
protected  ConcurrentHashMap<CometHandler,CometTask> CometContext.handlers
          The list of registered CometHandler
 

Methods in com.sun.grizzly.comet that return CometHandler
 CometHandler CometTask.getCometHandler()
          returns the CometHandler
 CometHandler CometContext.getCometHandler(int hashCode)
          Deprecated. 
 

Methods in com.sun.grizzly.comet that return types with arguments of type CometHandler
 Set<CometHandler> CometContext.getCometHandlers()
          Return the current list of active CometHandler
protected  ConcurrentHashMap<CometHandler,CometTask> CometContext.handlers()
          Return the internal list of active CometHandler
 

Methods in com.sun.grizzly.comet with parameters of type CometHandler
 int CometContext.addCometHandler(CometHandler handler)
          Add a CometHandler which will starts the process of suspending the underlying response.
 int CometContext.addCometHandler(CometHandler handler, boolean alreadySuspended)
          Add a CometHandler.
protected  void CometContext.initialize(CometHandler handler)
          Initialize the newly added CometHandler.
protected  void CometContext.invokeCometHandler(CometEvent event, CometHandler cometHandler)
          Invoke a CometHandler using the CometEvent
 boolean CometContext.isActive(CometHandler handler)
          Return true if this CometHandler is still active, e.g.
 void NotificationHandler.notify(CometEvent cometEvent, CometHandler cometHandler)
          Notify a single CometHandler.
 void DefaultNotificationHandler.notify(CometEvent cometEvent, CometHandler cometHandler)
          Notify the CometHandler.
 void CometContext.notify(Object attachment, CometHandler cometHandler)
          Notify a single CometHandler#onEvent(CometEvent.
 void CometContext.notify(Object attachment, int eventType, CometHandler cometHandler)
          Notify a single CometHandler.
protected  void DefaultNotificationHandler.notify0(CometEvent cometEvent, CometHandler cometHandler)
          Notify a CometHandler.
 boolean CometContext.registerAsyncRead(CometHandler handler)
          Register for asynchronous read event (CometEvent#READ}.
 boolean CometContext.registerAsyncWrite(CometHandler handler)
          Register for asynchronous write event (CometEvent#WRITE} .As soon as Grizzly detects there is some OS buffer available for write operations, your Comethandler#onEvent(CometEvent) will be invoked.
 boolean CometContext.removeCometHandler(CometHandler handler)
          Remove a CometHandler.
 boolean CometContext.removeCometHandler(CometHandler handler, boolean resume)
          Remove a CometHandler.
 boolean CometContext.resumeCometHandler(CometHandler handler)
          Resume the Comet request and remove it from the active CometHandler list.
 

Method parameters in com.sun.grizzly.comet with type arguments of type CometHandler
 void NotificationHandler.notify(CometEvent cometEvent, Iterator<CometHandler> iteratorHandlers)
          Notify all CometHandler.
 void DefaultNotificationHandler.notify(CometEvent cometEvent, Iterator<CometHandler> iteratorHandlers)
          Notify all CometHandler.
 

Constructors in com.sun.grizzly.comet with parameters of type CometHandler
CometTask(CometContext cometContext, CometHandler cometHandler)
          New CometTask.
 

Uses of CometHandler in com.sun.grizzly.comet.concurrent
 

Classes in com.sun.grizzly.comet.concurrent that implement CometHandler
 class DefaultConcurrentCometHandler<E>
          we queue events in each comethandler to lower the probability that slow or massive IO for one comethandler severly delays events to others.

only streaming mode can benefit from buffering messages like this.
 

Uses of CometHandler in com.sun.grizzly.comet.handlers
 

Classes in com.sun.grizzly.comet.handlers that implement CometHandler
 class ReflectorCometHandler
          Simple CometHandler that write (using a PrintWriter) all messages (CometEvent.attachment it receive.
 



Copyright © 2009 SUN Microsystems. All Rights Reserved.