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.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainerNested 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, SERVICEFields inherited from interface org.eclipse.jetty.util.component.Dumpable
KEY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedServerChannelImpl(BayeuxServerImpl bayeux, org.cometd.bayeux.ChannelId id) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAuthorizer(Authorizer authorizer) voidprotected List<Authorizer>voiddump(Appendable out, String indent) getAttribute(String name) org.cometd.bayeux.ChannelIdgetId()longbooleanbooleanbooleanbooleanisLazy()booleanisMeta()booleanbooleanbooleanisWild()voidvoidpublish(org.cometd.bayeux.Session from, ServerMessage.Mutable mutable, org.cometd.bayeux.Promise<Boolean> promise) voidremove()removeAttribute(String name) voidremoveAuthorizer(Authorizer authorizer) voidvoidsetAttribute(String name, Object value) voidsetBroadcastToPublisher(boolean broadcastToPublisher) voidsetLazy(boolean lazy) voidsetLazyTimeout(long lazyTimeout) voidsetPersistent(boolean persistent) booleansubscribe(ServerSession session) protected booleansubscribe(ServerSessionImpl session, ServerMessage message) protected voidsweep()toString()booleanunsubscribe(ServerSession session) protected booleanunsubscribe(ServerSessionImpl session, ServerMessage message) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.component.Dumpable
dump, dumpSelf
-
Constructor Details
-
ServerChannelImpl
-
-
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
-