Package org.cometd.server
Class ServerChannelImpl
java.lang.Object
org.cometd.server.ServerChannelImpl
- All Implemented Interfaces:
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
Fields inherited from interface org.cometd.bayeux.Channel
META, META_CONNECT, META_DISCONNECT, META_HANDSHAKE, META_SUBSCRIBE, META_UNSUBSCRIBE, SERVICE
-
Constructor Summary
Constructors Modifier Constructor Description protected
ServerChannelImpl(BayeuxServerImpl 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 interfaceChannel
-
isDeepWild
public boolean isDeepWild()- Specified by:
isDeepWild
in interfaceChannel
-
isLazy
public boolean isLazy()- Specified by:
isLazy
in interfaceConfigurableServerChannel
-
isPersistent
public boolean isPersistent()- Specified by:
isPersistent
in interfaceConfigurableServerChannel
-
isWild
public boolean isWild() -
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
-
removeListener
- Specified by:
removeListener
in interfaceConfigurableServerChannel
-
getListeners
- Specified by:
getListeners
in interfaceConfigurableServerChannel
-
listeners
-
getChannelId
- Specified by:
getChannelId
in interfaceChannel
-
getId
-
isMeta
public boolean isMeta() -
isService
public boolean isService() -
publish
- Specified by:
publish
in interfaceServerChannel
-
publish
- Specified by:
publish
in interfaceServerChannel
-
sweep
protected void sweep() -
remove
public void remove()- Specified by:
remove
in interfaceServerChannel
-
setAttribute
- Specified by:
setAttribute
in interfaceChannel
-
getAttribute
- Specified by:
getAttribute
in interfaceChannel
-
getAttributeNames
- Specified by:
getAttributeNames
in interfaceChannel
-
removeAttribute
- Specified by:
removeAttribute
in interfaceChannel
-
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
-
dump
- Specified by:
dump
in interfaceorg.eclipse.jetty.util.component.Dumpable
- Throws:
IOException
-
toString
-