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.cometd.bayeux.server.ServerChannel
ServerChannel.MessageListener, ServerChannel.SubscriptionListener
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protected
ServerChannelImpl(BayeuxServerImpl bayeux, org.cometd.bayeux.ChannelId id)
-
Method Summary
-
Constructor Details
-
Method Details
-
subscribe
- Specified by:
subscribe
in interfaceServerChannel
-
subscribe
-
unsubscribe
- Specified by:
unsubscribe
in interfaceServerChannel
-
unsubscribe
-
getSubscribers
- Specified by:
getSubscribers
in interfaceServerChannel
-
subscribers
-
isBroadcast
public boolean isBroadcast()- Specified by:
isBroadcast
in interfaceorg.cometd.bayeux.Channel
-
isDeepWild
public boolean isDeepWild()- Specified by:
isDeepWild
in interfaceorg.cometd.bayeux.Channel
-
isLazy
public boolean isLazy()- Specified by:
isLazy
in interfaceConfigurableServerChannel
-
isPersistent
public boolean isPersistent()- Specified by:
isPersistent
in interfaceConfigurableServerChannel
-
isWild
public boolean isWild()- Specified by:
isWild
in interfaceorg.cometd.bayeux.Channel
-
setLazy
public void setLazy(boolean lazy)- Specified by:
setLazy
in interfaceConfigurableServerChannel
-
getLazyTimeout
public long getLazyTimeout()- Specified by:
getLazyTimeout
in interfaceConfigurableServerChannel
-
setLazyTimeout
public void setLazyTimeout(long lazyTimeout)- Specified by:
setLazyTimeout
in interfaceConfigurableServerChannel
-
setPersistent
public void setPersistent(boolean persistent)- Specified by:
setPersistent
in interfaceConfigurableServerChannel
-
addListener
- Specified by:
addListener
in interfaceConfigurableServerChannel
-
isBroadcastToPublisher
public boolean isBroadcastToPublisher()- Specified by:
isBroadcastToPublisher
in interfaceConfigurableServerChannel
-
setBroadcastToPublisher
public void setBroadcastToPublisher(boolean broadcastToPublisher)- Specified by:
setBroadcastToPublisher
in interfaceConfigurableServerChannel
-
removeListener
- Specified by:
removeListener
in interfaceConfigurableServerChannel
-
getListeners
- Specified by:
getListeners
in interfaceConfigurableServerChannel
-
listeners
-
getChannelId
public org.cometd.bayeux.ChannelId getChannelId()- Specified by:
getChannelId
in interfaceorg.cometd.bayeux.Channel
-
getId
- Specified by:
getId
in interfaceorg.cometd.bayeux.Channel
-
isMeta
public boolean isMeta()- Specified by:
isMeta
in interfaceorg.cometd.bayeux.Channel
-
isService
public boolean isService()- Specified by:
isService
in interfaceorg.cometd.bayeux.Channel
-
publish
public void publish(org.cometd.bayeux.Session from, ServerMessage.Mutable mutable, org.cometd.bayeux.Promise<Boolean> promise)- Specified by:
publish
in interfaceServerChannel
-
publish
public void publish(org.cometd.bayeux.Session from, Object data, org.cometd.bayeux.Promise<Boolean> promise)- Specified by:
publish
in interfaceServerChannel
-
sweep
protected void sweep() -
remove
public void remove()- Specified by:
remove
in interfaceServerChannel
-
setAttribute
- Specified by:
setAttribute
in interfaceorg.cometd.bayeux.Channel
-
getAttribute
- Specified by:
getAttribute
in interfaceorg.cometd.bayeux.Channel
-
getAttributeNames
- Specified by:
getAttributeNames
in interfaceorg.cometd.bayeux.Channel
-
removeAttribute
- Specified by:
removeAttribute
in interfaceorg.cometd.bayeux.Channel
-
addAuthorizer
- Specified by:
addAuthorizer
in interfaceConfigurableServerChannel
-
removeAuthorizer
- Specified by:
removeAuthorizer
in interfaceConfigurableServerChannel
-
getAuthorizers
- Specified by:
getAuthorizers
in interfaceConfigurableServerChannel
-
authorizers
-
dump
- Specified by:
dump
in interfaceorg.eclipse.jetty.util.component.Dumpable
- Throws:
IOException
-
toString
-