Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- activeContexts - Variable in class org.glassfish.grizzly.comet.CometEngine
-
The current active
CometContextkeyed by context path. - addAttribute(Object, Object) - Method in class org.glassfish.grizzly.comet.CometContext
-
Add an attribute.
- addCometHandler(CometHandler<E>) - Method in class org.glassfish.grizzly.comet.CometContext
-
Add a
CometHandler. - AFTER_RESPONSE_PROCESSING - Static variable in class org.glassfish.grizzly.comet.CometEngine
-
Deprecated.
- AFTER_SERVLET_PROCESSING - Static variable in class org.glassfish.grizzly.comet.CometEngine
-
Deprecated.
- ALREADY_REMOVED - Static variable in class org.glassfish.grizzly.comet.CometContext
- attach(E) - Method in class org.glassfish.grizzly.comet.CometEvent
-
Attach an
- attachment - Variable in class org.glassfish.grizzly.comet.CometEvent
-
Share an
EamongstCometHandler - attachment() - Method in class org.glassfish.grizzly.comet.CometEvent
-
Return the attachment
B
- BEFORE_REQUEST_PROCESSING - Static variable in class org.glassfish.grizzly.comet.CometEngine
-
Deprecated.
C
- CometAddOn - Class in org.glassfish.grizzly.comet
-
Comet
AddOnfor theHttpServer. - CometAddOn() - Constructor for class org.glassfish.grizzly.comet.CometAddOn
- CometContext<E> - Class in org.glassfish.grizzly.comet
-
The main object used by
CometHandlerand Servlet to push information amongst suspended request/response. - CometContext(CometEngine, String) - Constructor for class org.glassfish.grizzly.comet.CometContext
-
Create a new instance
- CometEngine - Class in org.glassfish.grizzly.comet
-
Main class allowing Comet support on top of Grizzly Asynchronous Request Processing mechanism.
- CometEngine() - Constructor for class org.glassfish.grizzly.comet.CometEngine
-
Create a singleton and initialize all lists required.
- CometEvent<E> - Class in org.glassfish.grizzly.comet
-
Simple event class used to pass information between
CometHandlerand the Comet implementation. - CometEvent() - Constructor for class org.glassfish.grizzly.comet.CometEvent
-
Create a new
CometEvent - CometEvent(CometEvent.Type) - Constructor for class org.glassfish.grizzly.comet.CometEvent
- CometEvent(CometEvent.Type, CometContext) - Constructor for class org.glassfish.grizzly.comet.CometEvent
- CometEvent(CometEvent.Type, CometContext, E) - Constructor for class org.glassfish.grizzly.comet.CometEvent
- CometEvent.Type - Enum Class in org.glassfish.grizzly.comet
- CometHandler<E> - Interface in org.glassfish.grizzly.comet
-
This interface represents a suspended connection (or response).
D
- DefaultCometHandler<E> - Class in org.glassfish.grizzly.comet
-
A basic default implementation of CometHandler to take care of tracking the Response and CometContext.
- DefaultCometHandler() - Constructor for class org.glassfish.grizzly.comet.DefaultCometHandler
- DefaultCometHandler(CometContext<E>, Response) - Constructor for class org.glassfish.grizzly.comet.DefaultCometHandler
- DefaultConcurrentCometHandler<E> - Class in org.glassfish.grizzly.comet.concurrent
-
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. - DefaultConcurrentCometHandler(int) - Constructor for class org.glassfish.grizzly.comet.concurrent.DefaultConcurrentCometHandler
- DefaultConcurrentCometHandler(CometContext<E>, Response) - Constructor for class org.glassfish.grizzly.comet.concurrent.DefaultConcurrentCometHandler
- DefaultNotificationHandler - Class in org.glassfish.grizzly.comet
-
Default NotificationHandler that uses a thread pool dedicated to the CometEngine to execute the notification process.
- DefaultNotificationHandler() - Constructor for class org.glassfish.grizzly.comet.DefaultNotificationHandler
- deregister(String) - Method in class org.glassfish.grizzly.comet.CometEngine
-
Deregister the
CometHandlerto the list of theCometContext. - DISABLE_CLIENT_DISCONNECTION_DETECTION - Static variable in class org.glassfish.grizzly.comet.CometEngine
-
Deprecated.
- DISABLE_SUSPEND_TIMEOUT - Static variable in class org.glassfish.grizzly.comet.CometEngine
-
Deprecated.
E
- enqueueEvent(CometEvent) - Method in class org.glassfish.grizzly.comet.concurrent.DefaultConcurrentCometHandler
-
Queues event if another thread is currently working on this handler.
- eventInterrupt - Variable in class org.glassfish.grizzly.comet.CometContext
- eventTerminate - Variable in class org.glassfish.grizzly.comet.CometContext
G
- getAttribute(Object) - Method in class org.glassfish.grizzly.comet.CometContext
-
Retrieve an attribute.
- getCometContext() - Method in class org.glassfish.grizzly.comet.CometEvent
-
Return the
CometContextthat fired this event. - getCometContext() - Method in interface org.glassfish.grizzly.comet.CometHandler
- getCometContext() - Method in class org.glassfish.grizzly.comet.concurrent.DefaultConcurrentCometHandler
- getCometContext() - Method in class org.glassfish.grizzly.comet.DefaultCometHandler
- getCometContext(String) - Method in class org.glassfish.grizzly.comet.CometEngine
-
Return the
CometContextassociated with the topic. - getCometHandlers() - Method in class org.glassfish.grizzly.comet.CometContext
-
Return the current list of active
CometHandler - getContextPath() - Method in class org.glassfish.grizzly.comet.CometContext
-
Deprecated.- use getTopic.
- getEngine() - Static method in class org.glassfish.grizzly.comet.CometEngine
-
Return a singleton of this Class.
- getExpirationDelay() - Method in class org.glassfish.grizzly.comet.CometContext
-
Return the
longdelay, in millisecond, before a request is resumed. - getNotificationHandler() - Method in class org.glassfish.grizzly.comet.CometContext
-
Return the associated
NotificationHandler - getResponse() - Method in interface org.glassfish.grizzly.comet.CometHandler
- getResponse() - Method in class org.glassfish.grizzly.comet.concurrent.DefaultConcurrentCometHandler
- getResponse() - Method in class org.glassfish.grizzly.comet.DefaultCometHandler
- getTopic() - Method in class org.glassfish.grizzly.comet.CometContext
-
Get the topic representing this instance with this instance.
- getType() - Method in class org.glassfish.grizzly.comet.CometEvent
-
Return the
typeof this object.
I
- initialize(CometHandler) - Method in class org.glassfish.grizzly.comet.CometContext
-
Initialize the newly added
CometHandler. - INITIALIZE - Enum constant in enum class org.glassfish.grizzly.comet.CometEvent.Type
- interrupt(CometHandler, boolean) - Method in class org.glassfish.grizzly.comet.CometContext
-
Interrupt a
CometHandlerby invokingonInterrupt(org.glassfish.grizzly.comet.CometEvent) - interrupt(CometHandler, boolean) - Method in class org.glassfish.grizzly.comet.CometEngine
-
Deprecated.use the CometContext version
- INTERRUPT - Enum constant in enum class org.glassfish.grizzly.comet.CometEvent.Type
- interrupt0(CometHandler, boolean) - Method in class org.glassfish.grizzly.comet.CometContext
-
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. - interrupt0(CometHandler, boolean) - Method in class org.glassfish.grizzly.comet.CometEngine
-
Deprecated.use the CometContext version
- INVALID_COMET_HANDLER - Static variable in class org.glassfish.grizzly.comet.CometContext
-
Generic error message
- invokeCometHandler(CometEvent, CometHandler) - Method in class org.glassfish.grizzly.comet.CometContext
-
Invoke a
CometHandlerusing theCometEvent - isActive(CometHandler) - Method in class org.glassfish.grizzly.comet.CometContext
-
Return true if this
CometHandleris still active, e.g. - isCometEnabled() - Method in class org.glassfish.grizzly.comet.CometEngine
-
Return true if comet is enabled.
- isDetectClosedConnections() - Method in class org.glassfish.grizzly.comet.CometContext
-
Returns true if connection terminate detection is on.
L
- logger() - Static method in class org.glassfish.grizzly.comet.CometEngine
-
Return the current logger.
- LOGGER - Static variable in class org.glassfish.grizzly.comet.CometContext
- LOGGER - Static variable in class org.glassfish.grizzly.comet.CometEngine
-
Main logger
M
- messageQueue - Variable in class org.glassfish.grizzly.comet.concurrent.DefaultConcurrentCometHandler
-
todo replace with non array copying list for non resizing add situations, using internal index to keep track of state , not a linked list, it has too much overhead and eats memory.
N
- notificationHandler - Variable in class org.glassfish.grizzly.comet.CometContext
-
The default NotificationHandler.
- NotificationHandler - Interface in org.glassfish.grizzly.comet
-
This class is invoked when the CometContext.notify is invoked.
- notify(E) - Method in class org.glassfish.grizzly.comet.CometContext
-
Notify all
CometHandler. - notify(E, CometEvent.Type) - Method in class org.glassfish.grizzly.comet.CometContext
-
Notify all
CometHandler. - notify(E, CometEvent.Type, CometHandler) - Method in class org.glassfish.grizzly.comet.CometContext
-
Notify a single
CometHandler. - notify(E, CometHandler) - Method in class org.glassfish.grizzly.comet.CometContext
-
Notify a single
onEvent(CometEvent). - notify(CometEvent, Iterator<CometHandler>) - Method in class org.glassfish.grizzly.comet.DefaultNotificationHandler
-
Notify all
CometHandler. - notify(CometEvent, Iterator<CometHandler>) - Method in interface org.glassfish.grizzly.comet.NotificationHandler
-
Notify all
CometHandler. - notify(CometEvent, CometHandler) - Method in class org.glassfish.grizzly.comet.DefaultNotificationHandler
-
Notify the
CometHandler. - notify(CometEvent, CometHandler) - Method in interface org.glassfish.grizzly.comet.NotificationHandler
-
Notify a single
CometHandler. - NOTIFY - Enum constant in enum class org.glassfish.grizzly.comet.CometEvent.Type
- notify0(CometEvent, CometHandler) - Method in class org.glassfish.grizzly.comet.DefaultNotificationHandler
-
Notify a
CometHandler.
O
- onEvent(CometEvent) - Method in interface org.glassfish.grizzly.comet.CometHandler
-
Receive
CometEventnotification. - onEvent(CometEvent) - Method in class org.glassfish.grizzly.comet.DefaultCometHandler
- onInitialize(CometEvent) - Method in interface org.glassfish.grizzly.comet.CometHandler
-
Receive
CometEventnotification when Grizzly is about to suspend the connection. - onInitialize(CometEvent) - Method in class org.glassfish.grizzly.comet.DefaultCometHandler
- onInterrupt(CometEvent) - Method in interface org.glassfish.grizzly.comet.CometHandler
-
Receive
CometEventnotification when the underlying tcp communication is resumed by Grizzly. - onInterrupt(CometEvent) - Method in class org.glassfish.grizzly.comet.concurrent.DefaultConcurrentCometHandler
-
Receive
CometEventnotification when the underlying tcp communication is resumed by Grizzly. - onInterrupt(CometEvent) - Method in class org.glassfish.grizzly.comet.DefaultCometHandler
- onQueueFull(CometEvent) - Method in class org.glassfish.grizzly.comet.concurrent.DefaultConcurrentCometHandler
-
Called in synchronized context when the comet handler's local event queue is full.
default impl resumes the comet handler - onTerminate(CometEvent) - Method in interface org.glassfish.grizzly.comet.CometHandler
-
Receive
CometEventnotification when the response is resumed by aCometHandleror by theCometContext - onTerminate(CometEvent) - Method in class org.glassfish.grizzly.comet.concurrent.DefaultConcurrentCometHandler
-
Receive
CometEventnotification when the response is resumed by aCometHandleror by theCometContext - onTerminate(CometEvent) - Method in class org.glassfish.grizzly.comet.DefaultCometHandler
- org.glassfish.grizzly.comet - package org.glassfish.grizzly.comet
- org.glassfish.grizzly.comet.concurrent - package org.glassfish.grizzly.comet.concurrent
R
- READ - Enum constant in enum class org.glassfish.grizzly.comet.CometEvent.Type
- recycle() - Method in class org.glassfish.grizzly.comet.CometContext
-
Recycle this object.
- register(String) - Method in class org.glassfish.grizzly.comet.CometEngine
-
Register a context path with this
CometEngine. - register(String, int) - Method in class org.glassfish.grizzly.comet.CometEngine
-
Deprecated.Use
CometEngine.register(String)instead - register(String, Class<? extends NotificationHandler>) - Method in class org.glassfish.grizzly.comet.CometEngine
-
Instantiate a new
CometContext. - removeAttribute(Object) - Method in class org.glassfish.grizzly.comet.CometContext
-
Remove an attribute.
- removeCometHandler(CometHandler) - Method in class org.glassfish.grizzly.comet.CometContext
-
Remove a
CometHandler. - removeCometHandler(CometHandler, boolean) - Method in class org.glassfish.grizzly.comet.CometContext
-
Remove a
CometHandler. - REQUEST_LOCAL - Static variable in class org.glassfish.grizzly.comet.CometContext
- resumeCometHandler(CometHandler) - Method in class org.glassfish.grizzly.comet.CometContext
-
Resume the Comet request and remove it from the active
CometHandlerlist.
S
- setCometContext(CometContext) - Method in class org.glassfish.grizzly.comet.CometEvent
-
Set the
CometContextthat fired this event. - setCometContext(CometContext<E>) - Method in interface org.glassfish.grizzly.comet.CometHandler
- setCometContext(CometContext<E>) - Method in class org.glassfish.grizzly.comet.concurrent.DefaultConcurrentCometHandler
- setCometContext(CometContext<E>) - Method in class org.glassfish.grizzly.comet.DefaultCometHandler
- setCometSupported(boolean) - Method in class org.glassfish.grizzly.comet.CometEngine
- setDetectClosedConnections(boolean) - Method in class org.glassfish.grizzly.comet.CometContext
-
Enable/disable the mechanism, which detects closed connections and notifies user's handlers via
onInterrupt(org.glassfish.grizzly.comet.CometEvent)method. - setExpirationDelay(long) - Method in class org.glassfish.grizzly.comet.CometContext
-
Set the
longdelay before a request is resumed. - setNotificationHandler(NotificationHandler) - Method in class org.glassfish.grizzly.comet.CometContext
-
Set the current
NotificationHandler - setResponse(Response) - Method in interface org.glassfish.grizzly.comet.CometHandler
- setResponse(Response) - Method in class org.glassfish.grizzly.comet.concurrent.DefaultConcurrentCometHandler
- setResponse(Response) - Method in class org.glassfish.grizzly.comet.DefaultCometHandler
- setThreadPool(ExecutorService) - Method in class org.glassfish.grizzly.comet.DefaultNotificationHandler
-
Set the
ExecutorServiceused for notifying the CometHandler. - setType(CometEvent.Type) - Method in class org.glassfish.grizzly.comet.CometEvent
-
Set the
typeof this object. - setup(NetworkListener, FilterChainBuilder) - Method in class org.glassfish.grizzly.comet.CometAddOn
T
- terminate() - Method in class org.glassfish.grizzly.comet.concurrent.DefaultConcurrentCometHandler
- TERMINATE - Enum constant in enum class org.glassfish.grizzly.comet.CometEvent.Type
- threadPool - Variable in class org.glassfish.grizzly.comet.CometEngine
-
The
ExecutorServiceused to execute - threadPool - Variable in class org.glassfish.grizzly.comet.DefaultNotificationHandler
-
The
ExecutorServiceused to execute threaded notification. - topic - Variable in class org.glassfish.grizzly.comet.CometContext
-
The context path associated with this instance.
- toString() - Method in class org.glassfish.grizzly.comet.CometContext
- type - Variable in class org.glassfish.grizzly.comet.CometEvent
-
This type of event.
U
- unregister(String) - Method in class org.glassfish.grizzly.comet.CometEngine
-
Deprecated.
V
- valueOf(String) - Static method in enum class org.glassfish.grizzly.comet.CometEvent.Type
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.glassfish.grizzly.comet.CometEvent.Type
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- WRITE - Enum constant in enum class org.glassfish.grizzly.comet.CometEvent.Type
All Classes and Interfaces|All Packages|Constant Field Values