public class ServerChannelImpl extends Object implements ServerChannel
ServerChannel.MessageListener, ServerChannel.SubscriptionListenerConfigurableServerChannel.Initializer, ConfigurableServerChannel.ServerChannelListenerMETA, META_CONNECT, META_DISCONNECT, META_HANDSHAKE, META_SUBSCRIBE, META_UNSUBSCRIBE, SERVICE| Modifier | Constructor and Description |
|---|---|
protected |
ServerChannelImpl(BayeuxServerImpl bayeux,
ChannelId id) |
protected ServerChannelImpl(BayeuxServerImpl bayeux, ChannelId id)
public boolean subscribe(ServerSession session)
subscribe in interface ServerChannelprotected boolean subscribe(ServerSessionImpl session, ServerMessage message)
public boolean unsubscribe(ServerSession session)
unsubscribe in interface ServerChannelprotected boolean unsubscribe(ServerSessionImpl session, ServerMessage message)
public Set<ServerSession> getSubscribers()
getSubscribers in interface ServerChannelpublic Set<ServerSession> subscribers()
public 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 ConfigurableServerChannelprotected List<ConfigurableServerChannel.ServerChannelListener> listeners()
public ChannelId getChannelId()
getChannelId in interface Channelpublic void publish(Session from, ServerMessage.Mutable mutable)
publish in interface ServerChannelpublic void publish(Session from, Object data)
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 ConfigurableServerChannelprotected List<Authorizer> authorizers()
Copyright © 2008–2015 Dojo Foundation. All rights reserved.