|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.grizzly.comet.CometEvent<E>
public class CometEvent<E>
Simple event class used to pass information between CometHandler
and the Comet implementation.
Field Summary | |
---|---|
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. |
Constructor Summary | |
---|---|
CometEvent()
Create a new ComettEvent |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int INTERRUPT
CometHandler
.
public static final int NOTIFY
CometHandler
.
public static final int INITIALIZE
CometHandler
.
public static final int TERMINATE
CometHandler
.
public static final int READ
CometHandler
of available bytes.
public static final int WRITE
CometHandler
when the channel is writable.
protected int type
protected E attachment
E
amongst CometHandler
Constructor Detail |
---|
public CometEvent()
ComettEvent
Method Detail |
---|
public int getType()
type
of this object.
type
of this objectprotected void setType(int type)
type
of this object.
int
- the type
of this objectpublic void attach(E attachment)
attachment
- An attachment.public E attachment()
public CometContext getCometContext()
CometContext
that fired this event.
protected void setCometContext(CometContext cometContext)
CometContext
that fired this event.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |