public class ServerChannelImpl extends Object implements ServerChannel, org.eclipse.jetty.util.component.Dumpable
ServerChannel.MessageListener, ServerChannel.SubscriptionListenerConfigurableServerChannel.Initializer, ConfigurableServerChannel.ServerChannelListener| Modifier | Constructor and Description |
|---|---|
protected |
ServerChannelImpl(BayeuxServerImpl bayeux,
org.cometd.bayeux.ChannelId id) |
protected ServerChannelImpl(BayeuxServerImpl bayeux, org.cometd.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 org.cometd.bayeux.Channelpublic boolean isDeepWild()
isDeepWild in interface org.cometd.bayeux.Channelpublic boolean isLazy()
isLazy in interface ConfigurableServerChannelpublic boolean isPersistent()
isPersistent in interface ConfigurableServerChannelpublic boolean isWild()
isWild in interface org.cometd.bayeux.Channelpublic 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 boolean isBroadcastToPublisher()
isBroadcastToPublisher in interface ConfigurableServerChannelpublic void setBroadcastToPublisher(boolean broadcastToPublisher)
setBroadcastToPublisher 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 org.cometd.bayeux.ChannelId getChannelId()
getChannelId in interface org.cometd.bayeux.Channelpublic String getId()
getId in interface org.cometd.bayeux.Channelpublic boolean isMeta()
isMeta in interface org.cometd.bayeux.Channelpublic boolean isService()
isService in interface org.cometd.bayeux.Channelpublic void publish(org.cometd.bayeux.Session from,
ServerMessage.Mutable mutable,
org.cometd.bayeux.Promise<Boolean> promise)
publish in interface ServerChannelpublic void publish(org.cometd.bayeux.Session from,
Object data,
org.cometd.bayeux.Promise<Boolean> promise)
publish in interface ServerChannelprotected boolean sweep()
public void remove()
remove in interface ServerChannelpublic void setAttribute(String name, Object value)
setAttribute in interface org.cometd.bayeux.Channelpublic Object getAttribute(String name)
getAttribute in interface org.cometd.bayeux.Channelpublic Set<String> getAttributeNames()
getAttributeNames in interface org.cometd.bayeux.Channelpublic Object removeAttribute(String name)
removeAttribute in interface org.cometd.bayeux.Channelpublic 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()
public void dump(Appendable out, String indent) throws IOException
dump in interface org.eclipse.jetty.util.component.DumpableIOExceptionCopyright © 2008–2025 The CometD Project. All rights reserved.