org.cometd.server
Class AbstractBayeux.ServiceChannel

java.lang.Object
  extended by org.cometd.server.ChannelImpl
      extended by org.cometd.server.AbstractBayeux.ServiceChannel
All Implemented Interfaces:
Channel
Enclosing class:
AbstractBayeux

protected class AbstractBayeux.ServiceChannel
extends ChannelImpl


Method Summary
 ChannelImpl addChild(ChannelImpl channel)
          Add a channel
 void subscribe(Client client)
          Subscribes the given Client to this channel.
 
Methods inherited from class org.cometd.server.ChannelImpl
addDataFilter, addListener, deliver, doDelivery, doRemove, getChannelCount, getChannelId, getChannels, getChild, getDataFilters, getId, getSubscriberCount, getSubscribers, isLazy, isPersistent, publish, publishLazy, remove, removeDataFilter, removeListener, setLazy, setPersistent, toString, unsubscribe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

addChild

public ChannelImpl addChild(ChannelImpl channel)
Description copied from class: ChannelImpl
Add a channel

Overrides:
addChild in class ChannelImpl
Returns:
The added channel, or the existing channel if another thread already added the channel

subscribe

public void subscribe(Client client)
Description copied from interface: Channel
Subscribes the given Client to this channel.

Specified by:
subscribe in interface Channel
Overrides:
subscribe in class ChannelImpl
Parameters:
client - the client to subscribe
See Also:
Channel.unsubscribe(Client)


Copyright © 2011 Dojo Foundation. All Rights Reserved.