Class CometEvent<E>

java.lang.Object
org.glassfish.grizzly.comet.CometEvent<E>

public class CometEvent<E> extends Object
Simple event class used to pass information between CometHandler and the Comet implementation.
Author:
Jeanfrancois Arcand
  • Field Details

  • Constructor Details

  • Method Details

    • getType

      public CometEvent.Type getType()
      Return the type of this object.
      Returns:
      int Return the type of this object
    • setType

      protected void setType(CometEvent.Type type)
      Set the type of this object.
      Parameters:
      type - the type of this object
    • attach

      public void attach(E attachment)
      Attach an
      Parameters:
      attachment - An attachment.
    • attachment

      public E attachment()
      Return the attachment
      Returns:
      attachment An attachment.
    • getCometContext

      public CometContext getCometContext()
      Return the CometContext that fired this event.
    • setCometContext

      protected void setCometContext(CometContext cometContext)
      Set the CometContext that fired this event.