FileDocCategorySizeDatePackage
CometHandler.javaAPI DocGlassfish v2 API3452Fri May 04 22:37:08 BST 2007com.sun.enterprise.web.connector.grizzly.comet

CometHandler

public interface CometHandler
This interface allow Java components part of an HTTP request to be polled by the Grizzly Asynchronous Request Mechanism. Components that implement this interface will be notified when another CometHandler notify them using CometContext.notify. With Servlet, it is recommended to attach the HTTPServletResponse and use this object to push back bytes to the client.
author
Jeanfrancois Arcand

Fields Summary
Constructors Summary
Methods Summary
public voidattach(E attachment)
Attach an intance of E to this class.

public voidonEvent(CometEvent event)
Receive CometEvent notification.

public voidonInitialize(CometEvent event)
Receive CometEvent notification when the underlying tcp communication is started by the client

public voidonInterrupt(CometEvent event)
Receive CometEvent notification when the underlying tcp communication is resumed by the Grizzly ARP.

public voidonTerminate(CometEvent event)
Receive CometEvent notification when the underlying tcp communication is closed by the CometHandler