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

Packages that use CometHandler
com.sun.enterprise.web.connector.grizzly.comet   
com.sun.grizzly.comet   
com.sun.grizzly.comet.concurrent   
com.sun.grizzly.comet.handlers   
com.sun.grizzly.cometd   
com.sun.grizzly.samples.comet   
com.sun.grizzly.samples.stickies   
 

Uses of CometHandler in com.sun.enterprise.web.connector.grizzly.comet
 

Subinterfaces of CometHandler in com.sun.enterprise.web.connector.grizzly.comet
 interface CometHandler<E>
          Deprecated. use CometHandler from com.sun.grizzly.comet.CometHandler.
 

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

Methods in com.sun.enterprise.web.connector.grizzly.comet with parameters of type CometHandler
protected  void CometContext.initialize(CometHandler handler)
          Deprecated. Initialize the newly added CometHandler.
protected  void DefaultNotificationHandler.notify0(CometEvent cometEvent, CometHandler cometHandler)
          Deprecated. Notify a CometHandler.
 

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 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 severely 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.
 

Uses of CometHandler in com.sun.grizzly.cometd
 

Classes in com.sun.grizzly.cometd that implement CometHandler
 class DataHandler
          CometHandler used to support the meta channel Verb Connect and Reconnect.
 

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

Classes in com.sun.grizzly.samples.comet that implement CometHandler
 class AjaxCometServlet.ChatListnerHandler
           
 class CometServlet.CometRequestHandler
           
 

Uses of CometHandler in com.sun.grizzly.samples.stickies
 

Classes in com.sun.grizzly.samples.stickies that implement CometHandler
 class StickyHandler
           
 



Copyright © 2012 Oracle Corporation. All Rights Reserved.