com.nec.webotx.enterprise.web.connector.grizzly.comet
クラス CometEvent<E>

java.lang.Object
  上位を拡張 com.nec.webotx.enterprise.web.connector.grizzly.comet.CometEvent<E>

public class CometEvent<E>
extends java.lang.Object

Simple event class used to pass information between CometHandler and the Comet implementation.


フィールドの概要
protected  E attachment
          Share an E amongst CometHandler
static int INITIALIZE
          Initialize the CometHandler.
static int INTERRUPT
          Interrupt the CometHandler.
static int NOTIFY
          Notify the CometHandler.
static int READ
          Notify the CometHandler of available bytes.
static int TERMINATE
          Terminate the CometHandler.
protected  int type
          This type of event.
static int WRITE
          Notify the CometHandler when the channel is writable.
 
コンストラクタの概要
CometEvent()
          Create a new ComettEvent
 
メソッドの概要
 void attach(E attachment)
          Attach an
 E attachment()
          Return the attachment
 CometContext getCometContext()
          Return the CometContext that fired this event.
 int getType()
          Return the type of this object.
protected  void setCometContext(CometContext cometContext)
          Set the CometContext that fired this event.
protected  void setType(int type)
          Set the type of this object.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

INTERRUPT

public static final int INTERRUPT
Interrupt the CometHandler.

関連項目:
定数フィールド値

NOTIFY

public static final int NOTIFY
Notify the CometHandler.

関連項目:
定数フィールド値

INITIALIZE

public static final int INITIALIZE
Initialize the CometHandler.

関連項目:
定数フィールド値

TERMINATE

public static final int TERMINATE
Terminate the CometHandler.

関連項目:
定数フィールド値

READ

public static final int READ
Notify the CometHandler of available bytes.

関連項目:
定数フィールド値

WRITE

public static final int WRITE
Notify the CometHandler when the channel is writable.

関連項目:
定数フィールド値

type

protected int type
This type of event.


attachment

protected E attachment
Share an E amongst CometHandler

コンストラクタの詳細

CometEvent

public CometEvent()
Create a new ComettEvent

メソッドの詳細

getType

public int getType()
Return the type of this object.

戻り値:
int Return the type of this object

setType

protected void setType(int type)
Set the type of this object.

パラメータ:
int - the type of this object

attach

public void attach(E attachment)
Attach an

パラメータ:
attachment - An attachment.

attachment

public E attachment()
Return the attachment

戻り値:
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.