Skip navigation links
A B C D E G I L M N O R S T U V 

A

activeContexts - Variable in class org.glassfish.grizzly.comet.CometEngine
The current active CometContext keyed 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
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 E amongst CometHandler
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 AddOn for the HttpServer.
CometAddOn() - Constructor for class org.glassfish.grizzly.comet.CometAddOn
 
CometContext<E> - Class in org.glassfish.grizzly.comet
The main object used by CometHandler and 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 CometHandler and 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 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(CometContext<E>, Response) - Constructor for class org.glassfish.grizzly.comet.concurrent.DefaultConcurrentCometHandler
 
DefaultConcurrentCometHandler(int) - 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 CometHandler to the list of the CometContext.
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(String) - Method in class org.glassfish.grizzly.comet.CometEngine
Return the CometContext associated with the topic.
getCometContext() - Method in class org.glassfish.grizzly.comet.CometEvent
Return the CometContext that 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
 
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 long delay, 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 type of this object.

I

initialize(CometHandler) - Method in class org.glassfish.grizzly.comet.CometContext
Initialize the newly added CometHandler.
interrupt(CometHandler, boolean) - Method in class org.glassfish.grizzly.comet.CometContext
interrupt(CometHandler, boolean) - Method in class org.glassfish.grizzly.comet.CometEngine
Deprecated.
use the CometContext version
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 CometHandler using the CometEvent
isActive(CometHandler) - Method in class org.glassfish.grizzly.comet.CometContext
Return true if this CometHandler is 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 variable in class org.glassfish.grizzly.comet.CometContext
 
logger - Static variable in class org.glassfish.grizzly.comet.CometEngine
Main logger
logger() - Static method in class org.glassfish.grizzly.comet.CometEngine
Return the current logger.
logger - Static variable in class org.glassfish.grizzly.comet.concurrent.DefaultConcurrentCometHandler
 

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, CometHandler) - Method in class org.glassfish.grizzly.comet.CometContext
notify(E, CometEvent.Type, CometHandler) - Method in class org.glassfish.grizzly.comet.CometContext
Notify a single CometHandler.
notify(E, CometEvent.Type) - Method in class org.glassfish.grizzly.comet.CometContext
Notify all CometHandler.
notify(CometEvent, Iterator<CometHandler>) - Method in class org.glassfish.grizzly.comet.DefaultNotificationHandler
Notify all CometHandler.
notify(CometEvent, CometHandler) - Method in class org.glassfish.grizzly.comet.DefaultNotificationHandler
Notify the CometHandler.
notify(CometEvent, Iterator<CometHandler>) - Method in interface org.glassfish.grizzly.comet.NotificationHandler
Notify all CometHandler.
notify(CometEvent, CometHandler) - Method in interface org.glassfish.grizzly.comet.NotificationHandler
Notify a single CometHandler.
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 CometEvent notification.
onEvent(CometEvent) - Method in class org.glassfish.grizzly.comet.DefaultCometHandler
 
onInitialize(CometEvent) - Method in interface org.glassfish.grizzly.comet.CometHandler
Receive CometEvent notification 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 CometEvent notification when the underlying tcp communication is resumed by Grizzly.
onInterrupt(CometEvent) - Method in class org.glassfish.grizzly.comet.concurrent.DefaultConcurrentCometHandler
Receive CometEvent notification 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 CometEvent notification when the response is resumed by a CometHandler or by the CometContext
onTerminate(CometEvent) - Method in class org.glassfish.grizzly.comet.concurrent.DefaultConcurrentCometHandler
Receive CometEvent notification when the response is resumed by a CometHandler or by the CometContext
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

recycle() - Method in class org.glassfish.grizzly.comet.CometContext
Recycle this object.
register(String, int) - Method in class org.glassfish.grizzly.comet.CometEngine
Deprecated.
register(String) - Method in class org.glassfish.grizzly.comet.CometEngine
Register a context path with this CometEngine.
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 CometHandler list.

S

setCometContext(CometContext) - Method in class org.glassfish.grizzly.comet.CometEvent
Set the CometContext that 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 CometHandler.onInterrupt(org.glassfish.grizzly.comet.CometEvent) method.
setExpirationDelay(long) - Method in class org.glassfish.grizzly.comet.CometContext
Set the long delay 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 ExecutorService used for notifying the CometHandler.
setType(CometEvent.Type) - Method in class org.glassfish.grizzly.comet.CometEvent
Set the type of this object.
setup(NetworkListener, FilterChainBuilder) - Method in class org.glassfish.grizzly.comet.CometAddOn
 

T

terminate() - Method in class org.glassfish.grizzly.comet.concurrent.DefaultConcurrentCometHandler
 
threadPool - Variable in class org.glassfish.grizzly.comet.CometEngine
The ExecutorService used to execute
threadPool - Variable in class org.glassfish.grizzly.comet.DefaultNotificationHandler
The ExecutorService used 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 org.glassfish.grizzly.comet.CometEvent.Type
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.glassfish.grizzly.comet.CometEvent.Type
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D E G I L M N O R S T U V 
Skip navigation links

Copyright © 2018 Oracle Corporation. All Rights Reserved.