|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mortbay.cometd.ChannelImpl
public class ChannelImpl
A Bayuex Channel
Constructor Summary | |
---|---|
protected |
ChannelImpl(String id,
AbstractBayeux bayeux)
|
Method Summary | |
---|---|
ChannelImpl |
addChild(ChannelImpl channel)
Add a channel |
void |
addDataFilter(org.cometd.DataFilter filter)
|
void |
addListener(org.cometd.ChannelListener listener)
|
void |
deliver(org.cometd.Client from,
Iterable<org.cometd.Client> to,
Object data,
String id)
|
protected void |
doDelivery(ChannelId to,
org.cometd.Client from,
org.cometd.Message msg)
|
boolean |
doRemove(ChannelImpl channel,
List<org.cometd.ChannelBayeuxListener> listeners)
|
int |
getChannelCount()
|
ChannelId |
getChannelId()
|
void |
getChannels(List<org.cometd.Channel> list)
|
ChannelImpl |
getChild(ChannelId id)
|
Collection<org.cometd.DataFilter> |
getDataFilters()
|
String |
getId()
|
int |
getSubscriberCount()
|
Collection<org.cometd.Client> |
getSubscribers()
|
boolean |
isLazy()
A Lazy channel marks published messages as lazy. |
boolean |
isPersistent()
|
void |
publish(org.cometd.Client fromClient,
Object data,
String msgId)
|
void |
publishLazy(org.cometd.Client fromClient,
Object data,
String msgId)
|
boolean |
remove()
|
org.cometd.DataFilter |
removeDataFilter(org.cometd.DataFilter filter)
|
void |
removeListener(org.cometd.ChannelListener listener)
|
void |
setLazy(boolean lazy)
A Lazy channel marks published messages as lazy. |
void |
setPersistent(boolean persistent)
|
void |
subscribe(org.cometd.Client client)
|
String |
toString()
|
void |
unsubscribe(org.cometd.Client client)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected ChannelImpl(String id, AbstractBayeux bayeux)
Method Detail |
---|
public boolean isLazy()
isLazy
in interface org.cometd.Channel
public void setLazy(boolean lazy)
setLazy
in interface org.cometd.Channel
lazy
- true if message is lazypublic ChannelImpl addChild(ChannelImpl channel)
channel
-
public void addDataFilter(org.cometd.DataFilter filter)
addDataFilter
in interface org.cometd.Channel
filter
- public ChannelId getChannelId()
public ChannelImpl getChild(ChannelId id)
public void getChannels(List<org.cometd.Channel> list)
public int getChannelCount()
public String getId()
getId
in interface org.cometd.Channel
public boolean isPersistent()
isPersistent
in interface org.cometd.Channel
public void deliver(org.cometd.Client from, Iterable<org.cometd.Client> to, Object data, String id)
public void publish(org.cometd.Client fromClient, Object data, String msgId)
publish
in interface org.cometd.Channel
public void publishLazy(org.cometd.Client fromClient, Object data, String msgId)
public boolean remove()
remove
in interface org.cometd.Channel
public boolean doRemove(ChannelImpl channel, List<org.cometd.ChannelBayeuxListener> listeners)
public org.cometd.DataFilter removeDataFilter(org.cometd.DataFilter filter)
removeDataFilter
in interface org.cometd.Channel
filter
- public void setPersistent(boolean persistent)
setPersistent
in interface org.cometd.Channel
public void subscribe(org.cometd.Client client)
subscribe
in interface org.cometd.Channel
client
- public String toString()
toString
in class Object
public void unsubscribe(org.cometd.Client client)
unsubscribe
in interface org.cometd.Channel
client
- protected void doDelivery(ChannelId to, org.cometd.Client from, org.cometd.Message msg)
public Collection<org.cometd.Client> getSubscribers()
getSubscribers
in interface org.cometd.Channel
public int getSubscriberCount()
getSubscriberCount
in interface org.cometd.Channel
public Collection<org.cometd.DataFilter> getDataFilters()
getDataFilters
in interface org.cometd.Channel
public void addListener(org.cometd.ChannelListener listener)
addListener
in interface org.cometd.Channel
public void removeListener(org.cometd.ChannelListener listener)
removeListener
in interface org.cometd.Channel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |