Package org.cometd.common
Class AbstractClientSession.AbstractSessionChannel
java.lang.Object
org.cometd.common.AbstractClientSession.AbstractSessionChannel
- All Implemented Interfaces:
org.cometd.bayeux.Channel,ClientSessionChannel,org.eclipse.jetty.util.component.Dumpable
- Enclosing class:
AbstractClientSession
protected abstract class AbstractClientSession.AbstractSessionChannel
extends Object
implements ClientSessionChannel, org.eclipse.jetty.util.component.Dumpable
A channel scoped to a ClientSession.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cometd.bayeux.client.ClientSessionChannel
ClientSessionChannel.ClientSessionChannelListener, ClientSessionChannel.MessageListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainer -
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddump(Appendable out, String indent) dumpSelf()getAttribute(String name) org.cometd.bayeux.ChannelIdgetId()booleanbooleanbooleanisMeta()booleanbooleanbooleanisWild()protected voidnonFirstSubscribe(org.cometd.bayeux.Message.Mutable message, ClientSessionChannel.MessageListener listener, ClientSession.MessageListener callback) protected voidnonLastUnSubscribe(org.cometd.bayeux.Message.Mutable message, ClientSessionChannel.MessageListener listener, ClientSession.MessageListener callback) protected voidnotifyMessageListeners(org.cometd.bayeux.Message message) protected voidnotifyOnMessage(ClientSessionChannel.MessageListener listener, org.cometd.bayeux.Message message) voidpublish(Object data, ClientSession.MessageListener callback) voidpublish(org.cometd.bayeux.Message.Mutable message, ClientSession.MessageListener callback) booleanrelease()removeAttribute(String name) voidprotected voidprotected voidsendSubscribe(org.cometd.bayeux.Message.Mutable message, ClientSessionChannel.MessageListener listener, ClientSession.MessageListener callback) protected voidsendUnSubscribe(org.cometd.bayeux.Message.Mutable message, ClientSession.MessageListener callback) Deprecated.protected voidsendUnSubscribe(org.cometd.bayeux.Message.Mutable message, ClientSessionChannel.MessageListener listener, ClientSession.MessageListener callback) voidsetAttribute(String name, Object value) booleansubscribe(org.cometd.bayeux.Message.Mutable message, ClientSessionChannel.MessageListener listener, ClientSession.MessageListener callback) protected voidtoString()voidbooleanunsubscribe(org.cometd.bayeux.Message.Mutable message, ClientSessionChannel.MessageListener listener, ClientSession.MessageListener callback) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.cometd.bayeux.client.ClientSessionChannel
getSession, publish, subscribe, subscribe, unsubscribe, unsubscribeMethods inherited from interface org.eclipse.jetty.util.component.Dumpable
dump
-
Constructor Details
-
AbstractSessionChannel
protected AbstractSessionChannel(org.cometd.bayeux.ChannelId id)
-
-
Method Details
-
getChannelId
public org.cometd.bayeux.ChannelId getChannelId()- Specified by:
getChannelIdin interfaceorg.cometd.bayeux.Channel
-
addListener
- Specified by:
addListenerin interfaceClientSessionChannel
-
removeListener
- Specified by:
removeListenerin interfaceClientSessionChannel
-
getListeners
- Specified by:
getListenersin interfaceClientSessionChannel
-
publish
- Specified by:
publishin interfaceClientSessionChannel
-
publish
public void publish(org.cometd.bayeux.Message.Mutable message, ClientSession.MessageListener callback) - Specified by:
publishin interfaceClientSessionChannel
-
subscribe
public boolean subscribe(org.cometd.bayeux.Message.Mutable message, ClientSessionChannel.MessageListener listener, ClientSession.MessageListener callback) - Specified by:
subscribein interfaceClientSessionChannel
-
sendSubscribe
protected void sendSubscribe(org.cometd.bayeux.Message.Mutable message, ClientSessionChannel.MessageListener listener, ClientSession.MessageListener callback) -
nonFirstSubscribe
protected void nonFirstSubscribe(org.cometd.bayeux.Message.Mutable message, ClientSessionChannel.MessageListener listener, ClientSession.MessageListener callback) -
unsubscribe
public boolean unsubscribe(org.cometd.bayeux.Message.Mutable message, ClientSessionChannel.MessageListener listener, ClientSession.MessageListener callback) - Specified by:
unsubscribein interfaceClientSessionChannel
-
sendUnSubscribe
protected void sendUnSubscribe(org.cometd.bayeux.Message.Mutable message, ClientSessionChannel.MessageListener listener, ClientSession.MessageListener callback) -
sendUnSubscribe
@Deprecated protected void sendUnSubscribe(org.cometd.bayeux.Message.Mutable message, ClientSession.MessageListener callback) Deprecated. -
nonLastUnSubscribe
protected void nonLastUnSubscribe(org.cometd.bayeux.Message.Mutable message, ClientSessionChannel.MessageListener listener, ClientSession.MessageListener callback) -
unsubscribe
public void unsubscribe()- Specified by:
unsubscribein interfaceClientSessionChannel
-
getSubscribers
- Specified by:
getSubscribersin interfaceClientSessionChannel
-
release
public boolean release()- Specified by:
releasein interfaceClientSessionChannel
-
isReleased
public boolean isReleased()- Specified by:
isReleasedin interfaceClientSessionChannel
-
resetSubscriptions
protected void resetSubscriptions() -
getId
- Specified by:
getIdin interfaceorg.cometd.bayeux.Channel
-
isDeepWild
public boolean isDeepWild()- Specified by:
isDeepWildin 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
-
isBroadcast
public boolean isBroadcast()- Specified by:
isBroadcastin interfaceorg.cometd.bayeux.Channel
-
isWild
public boolean isWild()- Specified by:
isWildin interfaceorg.cometd.bayeux.Channel
-
notifyMessageListeners
protected void notifyMessageListeners(org.cometd.bayeux.Message message) -
notifyOnMessage
protected void notifyOnMessage(ClientSessionChannel.MessageListener listener, org.cometd.bayeux.Message message) -
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
-
throwIfReleased
protected void throwIfReleased() -
dumpSelf
- Specified by:
dumpSelfin interfaceorg.eclipse.jetty.util.component.Dumpable
-
dump
- Specified by:
dumpin interfaceorg.eclipse.jetty.util.component.Dumpable- Throws:
IOException
-
toString
-