|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mortbay.cometd.ChannelImpl
public class ChannelImpl
A Bayuex Channel
Field Summary | |
---|---|
protected AbstractBayeux |
_bayeux
|
Method Summary | |
---|---|
void |
addChild(ChannelImpl channel)
|
void |
addDataFilter(dojox.cometd.DataFilter filter)
|
protected void |
doDelivery(ChannelId to,
dojox.cometd.Client from,
dojox.cometd.Message msg)
|
ChannelId |
getChannelId()
|
void |
getChannels(List<dojox.cometd.Channel> list)
|
ChannelImpl |
getChild(ChannelId id)
|
Collection<dojox.cometd.DataFilter> |
getDataFilters()
|
String |
getId()
|
int |
getSubscriberCount()
|
Collection<dojox.cometd.Client> |
getSubscribers()
|
boolean |
isPersistent()
Is the channel persistent. |
void |
publish(dojox.cometd.Client fromClient,
Object data,
String msgId)
Publish a message This is equivalent to Bayeux.publish(fromClient,channel.getId(),data,msgId). |
boolean |
remove()
|
dojox.cometd.DataFilter |
removeDataFilter(dojox.cometd.DataFilter filter)
|
void |
setPersistent(boolean persistent)
|
void |
subscribe(dojox.cometd.Client client)
Subscribe to a channel. |
String |
toString()
|
void |
unsubscribe(dojox.cometd.Client client)
Unsubscribe to a channel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected AbstractBayeux _bayeux
Method Detail |
---|
public void addChild(ChannelImpl channel)
public void addDataFilter(dojox.cometd.DataFilter filter)
addDataFilter
in interface dojox.cometd.Channel
filter
- public ChannelId getChannelId()
public ChannelImpl getChild(ChannelId id)
public void getChannels(List<dojox.cometd.Channel> list)
public String getId()
getId
in interface dojox.cometd.Channel
public boolean isPersistent()
dojox.cometd.Channel
isPersistent
in interface dojox.cometd.Channel
public void publish(dojox.cometd.Client fromClient, Object data, String msgId)
dojox.cometd.Channel
publish
in interface dojox.cometd.Channel
public boolean remove()
remove
in interface dojox.cometd.Channel
public dojox.cometd.DataFilter removeDataFilter(dojox.cometd.DataFilter filter)
removeDataFilter
in interface dojox.cometd.Channel
filter
- public void setPersistent(boolean persistent)
setPersistent
in interface dojox.cometd.Channel
persistent
- true if the Channel will persist without any subscription.public void subscribe(dojox.cometd.Client client)
dojox.cometd.Channel
subscribe
in interface dojox.cometd.Channel
client
- public String toString()
toString
in class Object
public void unsubscribe(dojox.cometd.Client client)
dojox.cometd.Channel
unsubscribe
in interface dojox.cometd.Channel
client
- protected void doDelivery(ChannelId to, dojox.cometd.Client from, dojox.cometd.Message msg)
public Collection<dojox.cometd.Client> getSubscribers()
getSubscribers
in interface dojox.cometd.Channel
public int getSubscriberCount()
getSubscriberCount
in interface dojox.cometd.Channel
public Collection<dojox.cometd.DataFilter> getDataFilters()
getDataFilters
in interface dojox.cometd.Channel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |