Uses of Interface
org.glassfish.grizzly.comet.CometHandler
Packages that use CometHandler
-
Uses of CometHandler in org.glassfish.grizzly.comet
Classes in org.glassfish.grizzly.comet that implement CometHandlerModifier and TypeClassDescriptionclassA basic default implementation of CometHandler to take care of tracking the Response and CometContext.Methods in org.glassfish.grizzly.comet that return types with arguments of type CometHandlerModifier and TypeMethodDescriptionCometContext.getCometHandlers()Return the current list of activeCometHandlerMethods in org.glassfish.grizzly.comet with parameters of type CometHandlerModifier and TypeMethodDescriptionintCometContext.addCometHandler(CometHandler<E> handler) Add aCometHandler.protected voidCometContext.initialize(CometHandler handler) Initialize the newly addedCometHandler.booleanCometContext.interrupt(CometHandler handler, boolean finishExecution) Interrupt aCometHandlerby invokingonInterrupt(org.glassfish.grizzly.comet.CometEvent)protected booleanCometEngine.interrupt(CometHandler handler, boolean finishExecution) Deprecated.use the CometContext versionprotected voidCometContext.interrupt0(CometHandler handler, boolean finishExecution) Interrupt logic in its own method, so it can be executed either async or sync.
cometHandler.onInterrupt is performed async due to its functionality is unknown, hence not safe to run in the performance critical selector thread.protected voidCometEngine.interrupt0(CometHandler handler, boolean finishExecution) Deprecated.use the CometContext versionprotected voidCometContext.invokeCometHandler(CometEvent event, CometHandler cometHandler) Invoke aCometHandlerusing theCometEventbooleanCometContext.isActive(CometHandler handler) Return true if thisCometHandleris still active, e.g.voidCometContext.notify(E attachment, CometEvent.Type eventType, CometHandler cometHandler) Notify a singleCometHandler.voidCometContext.notify(E attachment, CometHandler cometHandler) Notify a singleonEvent(CometEvent).voidDefaultNotificationHandler.notify(CometEvent cometEvent, CometHandler cometHandler) Notify theCometHandler.voidNotificationHandler.notify(CometEvent cometEvent, CometHandler cometHandler) Notify a singleCometHandler.protected voidDefaultNotificationHandler.notify0(CometEvent cometEvent, CometHandler cometHandler) Notify aCometHandler.booleanCometContext.removeCometHandler(CometHandler handler) Remove aCometHandler.booleanCometContext.removeCometHandler(CometHandler handler, boolean resume) Remove aCometHandler.booleanCometContext.resumeCometHandler(CometHandler handler) Resume the Comet request and remove it from the activeCometHandlerlist.Method parameters in org.glassfish.grizzly.comet with type arguments of type CometHandlerModifier and TypeMethodDescriptionvoidDefaultNotificationHandler.notify(CometEvent cometEvent, Iterator<CometHandler> iteratorHandlers) Notify allCometHandler.voidNotificationHandler.notify(CometEvent cometEvent, Iterator<CometHandler> iteratorHandlers) Notify allCometHandler. -
Uses of CometHandler in org.glassfish.grizzly.comet.concurrent
Classes in org.glassfish.grizzly.comet.concurrent that implement CometHandlerModifier and TypeClassDescriptionclassWe 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.