Package org.cometd.common
Class AbstractClientSession.AbstractSessionChannel
java.lang.Object
org.cometd.common.AbstractClientSession.AbstractSessionChannel
- All Implemented Interfaces:
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.MessageListener -
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 protectedAbstractSessionChannel(ChannelId id) -
Method Summary
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, publish, publish, subscribe, subscribe, subscribe, unsubscribe, unsubscribe, unsubscribe
-
Constructor Details
-
Method Details
-
getChannelId
- Specified by:
getChannelIdin interfaceChannel
-
addListener
- Specified by:
addListenerin interfaceClientSessionChannel
-
removeListener
- Specified by:
removeListenerin interfaceClientSessionChannel
-
getListeners
- Specified by:
getListenersin interfaceClientSessionChannel
-
publish
- Specified by:
publishin interfaceClientSessionChannel
-
publish
- Specified by:
publishin interfaceClientSessionChannel
-
subscribe
public boolean subscribe(Message.Mutable message, ClientSessionChannel.MessageListener listener, ClientSession.MessageListener callback)- Specified by:
subscribein interfaceClientSessionChannel
-
sendSubscribe
protected void sendSubscribe(Message.Mutable message, ClientSessionChannel.MessageListener listener, ClientSession.MessageListener callback) -
unsubscribe
public boolean unsubscribe(Message.Mutable message, ClientSessionChannel.MessageListener listener, ClientSession.MessageListener callback)- Specified by:
unsubscribein interfaceClientSessionChannel
-
sendUnSubscribe
-
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
-
isDeepWild
public boolean isDeepWild()- Specified by:
isDeepWildin interfaceChannel
-
isMeta
public boolean isMeta() -
isService
public boolean isService() -
isBroadcast
public boolean isBroadcast()- Specified by:
isBroadcastin interfaceChannel
-
isWild
public boolean isWild() -
notifyMessageListeners
-
notifyOnMessage
-
setAttribute
- Specified by:
setAttributein interfaceChannel
-
getAttribute
- Specified by:
getAttributein interfaceChannel
-
getAttributeNames
- Specified by:
getAttributeNamesin interfaceChannel
-
removeAttribute
- Specified by:
removeAttributein interfaceChannel
-
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
-