Package org.cometd.server
Class ServerChannelImpl
- java.lang.Object
-
- org.cometd.server.ServerChannelImpl
-
- All Implemented Interfaces:
org.cometd.bayeux.Channel,ConfigurableServerChannel,ServerChannel,org.eclipse.jetty.util.component.Dumpable
public class ServerChannelImpl extends Object implements ServerChannel, org.eclipse.jetty.util.component.Dumpable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.cometd.bayeux.server.ConfigurableServerChannel
ConfigurableServerChannel.Initializer, ConfigurableServerChannel.ServerChannelListener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainer
-
Nested classes/interfaces inherited from interface org.cometd.bayeux.server.ServerChannel
ServerChannel.MessageListener, ServerChannel.SubscriptionListener
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedServerChannelImpl(BayeuxServerImpl bayeux, org.cometd.bayeux.ChannelId id)
-
Method Summary
-
-
-
Constructor Detail
-
ServerChannelImpl
protected ServerChannelImpl(BayeuxServerImpl bayeux, org.cometd.bayeux.ChannelId id)
-
-
Method Detail
-
subscribe
public boolean subscribe(ServerSession session)
- Specified by:
subscribein interfaceServerChannel
-
subscribe
protected boolean subscribe(ServerSessionImpl session, ServerMessage message)
-
unsubscribe
public boolean unsubscribe(ServerSession session)
- Specified by:
unsubscribein interfaceServerChannel
-
unsubscribe
protected boolean unsubscribe(ServerSessionImpl session, ServerMessage message)
-
getSubscribers
public Set<ServerSession> getSubscribers()
- Specified by:
getSubscribersin interfaceServerChannel
-
subscribers
public Set<ServerSession> subscribers()
-
isBroadcast
public boolean isBroadcast()
- Specified by:
isBroadcastin interfaceorg.cometd.bayeux.Channel
-
isDeepWild
public boolean isDeepWild()
- Specified by:
isDeepWildin interfaceorg.cometd.bayeux.Channel
-
isLazy
public boolean isLazy()
- Specified by:
isLazyin interfaceConfigurableServerChannel
-
isPersistent
public boolean isPersistent()
- Specified by:
isPersistentin interfaceConfigurableServerChannel
-
isWild
public boolean isWild()
- Specified by:
isWildin interfaceorg.cometd.bayeux.Channel
-
setLazy
public void setLazy(boolean lazy)
- Specified by:
setLazyin interfaceConfigurableServerChannel
-
getLazyTimeout
public long getLazyTimeout()
- Specified by:
getLazyTimeoutin interfaceConfigurableServerChannel
-
setLazyTimeout
public void setLazyTimeout(long lazyTimeout)
- Specified by:
setLazyTimeoutin interfaceConfigurableServerChannel
-
setPersistent
public void setPersistent(boolean persistent)
- Specified by:
setPersistentin interfaceConfigurableServerChannel
-
addListener
public void addListener(ConfigurableServerChannel.ServerChannelListener listener)
- Specified by:
addListenerin interfaceConfigurableServerChannel
-
isBroadcastToPublisher
public boolean isBroadcastToPublisher()
- Specified by:
isBroadcastToPublisherin interfaceConfigurableServerChannel
-
setBroadcastToPublisher
public void setBroadcastToPublisher(boolean broadcastToPublisher)
- Specified by:
setBroadcastToPublisherin interfaceConfigurableServerChannel
-
removeListener
public void removeListener(ConfigurableServerChannel.ServerChannelListener listener)
- Specified by:
removeListenerin interfaceConfigurableServerChannel
-
getListeners
public List<ConfigurableServerChannel.ServerChannelListener> getListeners()
- Specified by:
getListenersin interfaceConfigurableServerChannel
-
listeners
protected List<ConfigurableServerChannel.ServerChannelListener> listeners()
-
getChannelId
public org.cometd.bayeux.ChannelId getChannelId()
- Specified by:
getChannelIdin interfaceorg.cometd.bayeux.Channel
-
getId
public String getId()
- Specified by:
getIdin interfaceorg.cometd.bayeux.Channel
-
isMeta
public boolean isMeta()
- Specified by:
isMetain interfaceorg.cometd.bayeux.Channel
-
isService
public boolean isService()
- Specified by:
isServicein interfaceorg.cometd.bayeux.Channel
-
publish
public void publish(org.cometd.bayeux.Session from, ServerMessage.Mutable mutable, org.cometd.bayeux.Promise<Boolean> promise)- Specified by:
publishin interfaceServerChannel
-
publish
public void publish(org.cometd.bayeux.Session from, Object data, org.cometd.bayeux.Promise<Boolean> promise)- Specified by:
publishin interfaceServerChannel
-
sweep
protected void sweep()
-
remove
public void remove()
- Specified by:
removein interfaceServerChannel
-
setAttribute
public void setAttribute(String name, Object value)
- Specified by:
setAttributein interfaceorg.cometd.bayeux.Channel
-
getAttribute
public Object getAttribute(String name)
- Specified by:
getAttributein interfaceorg.cometd.bayeux.Channel
-
getAttributeNames
public Set<String> getAttributeNames()
- Specified by:
getAttributeNamesin interfaceorg.cometd.bayeux.Channel
-
removeAttribute
public Object removeAttribute(String name)
- Specified by:
removeAttributein interfaceorg.cometd.bayeux.Channel
-
addAuthorizer
public void addAuthorizer(Authorizer authorizer)
- Specified by:
addAuthorizerin interfaceConfigurableServerChannel
-
removeAuthorizer
public void removeAuthorizer(Authorizer authorizer)
- Specified by:
removeAuthorizerin interfaceConfigurableServerChannel
-
getAuthorizers
public List<Authorizer> getAuthorizers()
- Specified by:
getAuthorizersin interfaceConfigurableServerChannel
-
authorizers
protected List<Authorizer> authorizers()
-
dump
public void dump(Appendable out, String indent) throws IOException
- Specified by:
dumpin interfaceorg.eclipse.jetty.util.component.Dumpable- Throws:
IOException
-
-