com.sun.enterprise.web.connector.grizzly.comet
Interface CometHandler<E>

All Superinterfaces:
CometHandler<E>

Deprecated. use CometHandler from com.sun.grizzly.comet.CometHandler.

public interface CometHandler<E>
extends CometHandler<E>

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

Method Summary
 void attach(E attachment)
          Deprecated. Attach an intance of E to this class.
 void onEvent(CometEvent event)
          Deprecated. 
 void onInitialize(CometEvent event)
          Deprecated. 
 void onInterrupt(CometEvent event)
          Deprecated. 
 void onTerminate(CometEvent event)
          Deprecated. 
 
Methods inherited from interface com.sun.grizzly.comet.CometHandler
onEvent, onInitialize, onInterrupt, onTerminate
 

Method Detail

attach

void attach(E attachment)
Deprecated. 
Attach an intance of E to this class.

Specified by:
attach in interface CometHandler<E>

onEvent

void onEvent(CometEvent event)
             throws IOException
Deprecated. 

Throws:
IOException

onInitialize

void onInitialize(CometEvent event)
                  throws IOException
Deprecated. 

Throws:
IOException

onTerminate

void onTerminate(CometEvent event)
                 throws IOException
Deprecated. 

Throws:
IOException

onInterrupt

void onInterrupt(CometEvent event)
                 throws IOException
Deprecated. 

Throws:
IOException


Copyright © 2012 Oracle Corporation. All Rights Reserved.