org.mortbay.cometd
Class ChannelImpl
java.lang.Object
org.mortbay.cometd.ChannelImpl
- All Implemented Interfaces:
- org.cometd.Channel
- Direct Known Subclasses:
- AbstractBayeux.ServiceChannel
public class ChannelImpl
- extends java.lang.Object
- implements org.cometd.Channel
A Bayuex Channel
- Author:
- gregw
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_bayeux
protected AbstractBayeux _bayeux
addChild
public void addChild(ChannelImpl channel)
addDataFilter
public void addDataFilter(org.cometd.DataFilter filter)
- Specified by:
addDataFilter
in interface org.cometd.Channel
- Parameters:
filter
-
getChannelId
public ChannelId getChannelId()
- Returns:
getChild
public ChannelImpl getChild(ChannelId id)
getChannels
public void getChannels(java.util.List<org.cometd.Channel> list)
getChannelCount
public int getChannelCount()
getId
public java.lang.String getId()
- Specified by:
getId
in interface org.cometd.Channel
- Returns:
isPersistent
public boolean isPersistent()
- Specified by:
isPersistent
in interface org.cometd.Channel
publish
public void publish(org.cometd.Client fromClient,
java.lang.Object data,
java.lang.String msgId)
- Specified by:
publish
in interface org.cometd.Channel
remove
public boolean remove()
- Specified by:
remove
in interface org.cometd.Channel
doRemove
public boolean doRemove(ChannelImpl channel)
removeDataFilter
public org.cometd.DataFilter removeDataFilter(org.cometd.DataFilter filter)
- Specified by:
removeDataFilter
in interface org.cometd.Channel
- Parameters:
filter
-
setPersistent
public void setPersistent(boolean persistent)
- Specified by:
setPersistent
in interface org.cometd.Channel
subscribe
public void subscribe(org.cometd.Client client)
- Specified by:
subscribe
in interface org.cometd.Channel
- Parameters:
client
-
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
unsubscribe
public void unsubscribe(org.cometd.Client client)
- Specified by:
unsubscribe
in interface org.cometd.Channel
- Parameters:
client
-
doDelivery
protected void doDelivery(ChannelId to,
org.cometd.Client from,
org.cometd.Message msg)
getSubscribers
public java.util.Collection<org.cometd.Client> getSubscribers()
- Specified by:
getSubscribers
in interface org.cometd.Channel
getSubscriberCount
public int getSubscriberCount()
- Specified by:
getSubscriberCount
in interface org.cometd.Channel
getDataFilters
public java.util.Collection<org.cometd.DataFilter> getDataFilters()
- Specified by:
getDataFilters
in interface org.cometd.Channel
addListener
public void addListener(org.cometd.ChannelListener listener)
- Specified by:
addListener
in interface org.cometd.Channel
Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.