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.ServerChannelListenerNested classes/interfaces inherited from interface org.cometd.bayeux.server.ServerChannel
ServerChannel.MessageListener, ServerChannel.SubscriptionListener -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protectedServerChannelImpl(BayeuxServerImpl bayeux, org.cometd.bayeux.ChannelId id) -
Method Summary
-
Constructor Details
-
Method Details
-
subscribe
- Specified by:
subscribein interfaceServerChannel
-
subscribe
-
unsubscribe
- Specified by:
unsubscribein interfaceServerChannel
-
unsubscribe
-
getSubscribers
- Specified by:
getSubscribersin interfaceServerChannel
-
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
- Specified by:
addListenerin interfaceConfigurableServerChannel
-
isBroadcastToPublisher
public boolean isBroadcastToPublisher()- Specified by:
isBroadcastToPublisherin interfaceConfigurableServerChannel
-
setBroadcastToPublisher
public void setBroadcastToPublisher(boolean broadcastToPublisher)- Specified by:
setBroadcastToPublisherin interfaceConfigurableServerChannel
-
removeListener
- Specified by:
removeListenerin interfaceConfigurableServerChannel
-
getListeners
- Specified by:
getListenersin interfaceConfigurableServerChannel
-
listeners
-
getChannelId
public org.cometd.bayeux.ChannelId getChannelId()- Specified by:
getChannelIdin interfaceorg.cometd.bayeux.Channel
-
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
- Specified by:
setAttributein interfaceorg.cometd.bayeux.Channel
-
getAttribute
- Specified by:
getAttributein interfaceorg.cometd.bayeux.Channel
-
getAttributeNames
- Specified by:
getAttributeNamesin interfaceorg.cometd.bayeux.Channel
-
removeAttribute
- Specified by:
removeAttributein interfaceorg.cometd.bayeux.Channel
-
addAuthorizer
- Specified by:
addAuthorizerin interfaceConfigurableServerChannel
-
removeAuthorizer
- Specified by:
removeAuthorizerin interfaceConfigurableServerChannel
-
getAuthorizers
- Specified by:
getAuthorizersin interfaceConfigurableServerChannel
-
authorizers
-
dump
- Specified by:
dumpin interfaceorg.eclipse.jetty.util.component.Dumpable- Throws:
IOException
-
toString
-