Class CounterHandler

java.lang.Object
org.glassfish.grizzly.comet.DefaultCometHandler<javax.servlet.http.HttpServletResponse>
org.glassfish.grizzly.samples.comet.CounterHandler
All Implemented Interfaces:
org.glassfish.grizzly.comet.CometHandler<javax.servlet.http.HttpServletResponse>

public class CounterHandler extends org.glassfish.grizzly.comet.DefaultCometHandler<javax.servlet.http.HttpServletResponse>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onEvent(org.glassfish.grizzly.comet.CometEvent event)
     
    void
    onInterrupt(org.glassfish.grizzly.comet.CometEvent event)
     

    Methods inherited from class org.glassfish.grizzly.comet.DefaultCometHandler

    getCometContext, getResponse, onInitialize, onTerminate, setCometContext, setResponse

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • onEvent

      public void onEvent(org.glassfish.grizzly.comet.CometEvent event) throws IOException
      Specified by:
      onEvent in interface org.glassfish.grizzly.comet.CometHandler<javax.servlet.http.HttpServletResponse>
      Overrides:
      onEvent in class org.glassfish.grizzly.comet.DefaultCometHandler<javax.servlet.http.HttpServletResponse>
      Throws:
      IOException
    • onInterrupt

      public void onInterrupt(org.glassfish.grizzly.comet.CometEvent event) throws IOException
      Specified by:
      onInterrupt in interface org.glassfish.grizzly.comet.CometHandler<javax.servlet.http.HttpServletResponse>
      Overrides:
      onInterrupt in class org.glassfish.grizzly.comet.DefaultCometHandler<javax.servlet.http.HttpServletResponse>
      Throws:
      IOException