public class ServerChannelImpl extends Object implements ServerChannel, org.eclipse.jetty.util.component.Dumpable
ServerChannel.MessageListener, ServerChannel.SubscriptionListener
ConfigurableServerChannel.Initializer, ConfigurableServerChannel.ServerChannelListener
META, 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 ServerChannel
protected boolean subscribe(ServerSessionImpl session, ServerMessage message)
public boolean unsubscribe(ServerSession session)
unsubscribe
in interface ServerChannel
protected boolean unsubscribe(ServerSessionImpl session, ServerMessage message)
public Set<ServerSession> getSubscribers()
getSubscribers
in interface ServerChannel
public Set<ServerSession> subscribers()
public boolean isBroadcast()
isBroadcast
in interface Channel
public boolean isDeepWild()
isDeepWild
in interface Channel
public boolean isLazy()
isLazy
in interface ConfigurableServerChannel
public boolean isPersistent()
isPersistent
in interface ConfigurableServerChannel
public void setLazy(boolean lazy)
setLazy
in interface ConfigurableServerChannel
public long getLazyTimeout()
getLazyTimeout
in interface ConfigurableServerChannel
public void setLazyTimeout(long lazyTimeout)
setLazyTimeout
in interface ConfigurableServerChannel
public void setPersistent(boolean persistent)
setPersistent
in interface ConfigurableServerChannel
public void addListener(ConfigurableServerChannel.ServerChannelListener listener)
addListener
in interface ConfigurableServerChannel
public void removeListener(ConfigurableServerChannel.ServerChannelListener listener)
removeListener
in interface ConfigurableServerChannel
public List<ConfigurableServerChannel.ServerChannelListener> getListeners()
getListeners
in interface ConfigurableServerChannel
protected List<ConfigurableServerChannel.ServerChannelListener> listeners()
public ChannelId getChannelId()
getChannelId
in interface Channel
public void publish(Session from, ServerMessage.Mutable mutable)
publish
in interface ServerChannel
public void publish(Session from, Object data)
publish
in interface ServerChannel
protected void sweep()
public void remove()
remove
in interface ServerChannel
public void setAttribute(String name, Object value)
setAttribute
in interface Channel
public Object getAttribute(String name)
getAttribute
in interface Channel
public Set<String> getAttributeNames()
getAttributeNames
in interface Channel
public Object removeAttribute(String name)
removeAttribute
in interface Channel
public void addAuthorizer(Authorizer authorizer)
addAuthorizer
in interface ConfigurableServerChannel
public void removeAuthorizer(Authorizer authorizer)
removeAuthorizer
in interface ConfigurableServerChannel
public List<Authorizer> getAuthorizers()
getAuthorizers
in interface ConfigurableServerChannel
protected List<Authorizer> authorizers()
public String dump()
dump
in interface org.eclipse.jetty.util.component.Dumpable
public void dump(Appendable out, String indent) throws IOException
dump
in interface org.eclipse.jetty.util.component.Dumpable
IOException
Copyright © 2008–2016 The CometD Project. All rights reserved.