public class ServerChannelImpl extends Object implements ServerChannel
ServerChannel.MessageListener, ServerChannel.SubscriptionListenerConfigurableServerChannel.Initializer, ConfigurableServerChannel.ServerChannelListenerMETA, META_CONNECT, META_DISCONNECT, META_HANDSHAKE, META_SUBSCRIBE, META_UNSUBSCRIBE| Modifier | Constructor and Description |
|---|---|
protected |
ServerChannelImpl(BayeuxServerImpl bayeux,
ChannelId id,
ServerChannelImpl parent) |
protected ServerChannelImpl(BayeuxServerImpl bayeux, ChannelId id, ServerChannelImpl parent)
public boolean subscribe(ServerSession session)
subscribe in interface ServerChannelpublic boolean unsubscribe(ServerSession session)
unsubscribe in interface ServerChannelpublic Set<ServerSession> getSubscribers()
getSubscribers in interface ServerChannelpublic boolean isBroadcast()
isBroadcast in interface Channelpublic boolean isDeepWild()
isDeepWild in interface Channelpublic boolean isLazy()
isLazy in interface ConfigurableServerChannelpublic boolean isPersistent()
isPersistent in interface ConfigurableServerChannelpublic void setLazy(boolean lazy)
setLazy in interface ConfigurableServerChannelpublic long getLazyTimeout()
getLazyTimeout in interface ConfigurableServerChannelpublic void setLazyTimeout(long lazyTimeout)
setLazyTimeout in interface ConfigurableServerChannelpublic void setPersistent(boolean persistent)
setPersistent in interface ConfigurableServerChannelpublic void addListener(ConfigurableServerChannel.ServerChannelListener listener)
addListener in interface ConfigurableServerChannelpublic void removeListener(ConfigurableServerChannel.ServerChannelListener listener)
removeListener in interface ConfigurableServerChannelpublic List<ConfigurableServerChannel.ServerChannelListener> getListeners()
getListeners in interface ConfigurableServerChannelpublic ChannelId getChannelId()
getChannelId in interface Channelpublic void publish(Session from, ServerMessage.Mutable mutable)
publish in interface ServerChannelpublic void publish(Session from, Object data, String id)
publish in interface ServerChannelprotected void sweep()
public void remove()
remove in interface ServerChannelpublic void setAttribute(String name, Object value)
setAttribute in interface Channelpublic Object getAttribute(String name)
getAttribute in interface Channelpublic Set<String> getAttributeNames()
getAttributeNames in interface Channelpublic Object removeAttribute(String name)
removeAttribute in interface Channelprotected void dump(StringBuilder b, String indent)
public void addAuthorizer(Authorizer authorizer)
addAuthorizer in interface ConfigurableServerChannelpublic void removeAuthorizer(Authorizer authorizer)
removeAuthorizer in interface ConfigurableServerChannelpublic List<Authorizer> getAuthorizers()
getAuthorizers in interface ConfigurableServerChannelCopyright © 2008–2013 Dojo Foundation. All rights reserved.