public class CometEvent<E> extends Object
CometHandler
and the Comet implementation.Modifier and Type | Class and Description |
---|---|
static class |
CometEvent.Type |
Modifier and Type | Field and Description |
---|---|
protected E |
attachment
Share an
E amongst CometHandler |
protected CometEvent.Type |
type
This type of event.
|
Constructor and Description |
---|
CometEvent()
Create a new
CometEvent |
CometEvent(CometEvent.Type type) |
CometEvent(CometEvent.Type type,
CometContext context) |
CometEvent(CometEvent.Type type,
CometContext cometContext,
E attachment) |
Modifier and Type | Method and Description |
---|---|
void |
attach(E attachment)
Attach an
|
E |
attachment()
Return the attachment
|
CometContext |
getCometContext()
Return the
CometContext that fired this event. |
CometEvent.Type |
getType()
Return the
type of this object. |
protected void |
setCometContext(CometContext cometContext)
Set the
CometContext that fired this event. |
protected void |
setType(CometEvent.Type type)
Set the
type of this object. |
protected CometEvent.Type type
protected E attachment
E
amongst CometHandler
public CometEvent()
CometEvent
public CometEvent(CometEvent.Type type)
public CometEvent(CometEvent.Type type, CometContext context)
public CometEvent(CometEvent.Type type, CometContext cometContext, E attachment)
public CometEvent.Type getType()
type
of this object.type
of this objectprotected void setType(CometEvent.Type type)
type
of this object.type
- 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.Copyright © 2014 Oracle Corporation. All rights reserved.