Package org.cometd.common
Class AbstractClientSession.AbstractSessionChannel
java.lang.Object
org.cometd.common.AbstractClientSession.AbstractSessionChannel
- All Implemented Interfaces:
org.cometd.bayeux.Channel,org.cometd.bayeux.client.ClientSessionChannel,org.eclipse.jetty.util.component.Dumpable
- Enclosing class:
- AbstractClientSession
protected abstract class AbstractClientSession.AbstractSessionChannel extends Object implements org.cometd.bayeux.client.ClientSessionChannel, org.eclipse.jetty.util.component.Dumpable
A channel scoped to a ClientSession.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractSessionChannel(org.cometd.bayeux.ChannelId id) -
Method Summary
Modifier and Type Method Description voidaddListener(org.cometd.bayeux.client.ClientSessionChannel.ClientSessionChannelListener listener)voiddump(Appendable out, String indent)StringdumpSelf()ObjectgetAttribute(String name)Set<String>getAttributeNames()org.cometd.bayeux.ChannelIdgetChannelId()StringgetId()List<org.cometd.bayeux.client.ClientSessionChannel.ClientSessionChannelListener>getListeners()List<org.cometd.bayeux.client.ClientSessionChannel.MessageListener>getSubscribers()booleanisBroadcast()booleanisDeepWild()booleanisMeta()booleanisReleased()booleanisService()booleanisWild()protected voidnotifyMessageListeners(org.cometd.bayeux.Message message)protected voidnotifyOnMessage(org.cometd.bayeux.client.ClientSessionChannel.MessageListener listener, org.cometd.bayeux.Message message)voidpublish(Object data, org.cometd.bayeux.client.ClientSession.MessageListener callback)voidpublish(org.cometd.bayeux.Message.Mutable message, org.cometd.bayeux.client.ClientSession.MessageListener callback)booleanrelease()ObjectremoveAttribute(String name)voidremoveListener(org.cometd.bayeux.client.ClientSessionChannel.ClientSessionChannelListener listener)protected voidresetSubscriptions()protected voidsendSubscribe(org.cometd.bayeux.Message.Mutable message, org.cometd.bayeux.client.ClientSessionChannel.MessageListener listener, org.cometd.bayeux.client.ClientSession.MessageListener callback)protected voidsendUnSubscribe(org.cometd.bayeux.Message.Mutable message, org.cometd.bayeux.client.ClientSession.MessageListener callback)voidsetAttribute(String name, Object value)booleansubscribe(org.cometd.bayeux.Message.Mutable message, org.cometd.bayeux.client.ClientSessionChannel.MessageListener listener, org.cometd.bayeux.client.ClientSession.MessageListener callback)protected voidthrowIfReleased()StringtoString()voidunsubscribe()booleanunsubscribe(org.cometd.bayeux.Message.Mutable message, org.cometd.bayeux.client.ClientSessionChannel.MessageListener listener, org.cometd.bayeux.client.ClientSession.MessageListener callback)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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
public void addListener(org.cometd.bayeux.client.ClientSessionChannel.ClientSessionChannelListener listener)- Specified by:
addListenerin interfaceorg.cometd.bayeux.client.ClientSessionChannel
-
removeListener
public void removeListener(org.cometd.bayeux.client.ClientSessionChannel.ClientSessionChannelListener listener)- Specified by:
removeListenerin interfaceorg.cometd.bayeux.client.ClientSessionChannel
-
getListeners
public List<org.cometd.bayeux.client.ClientSessionChannel.ClientSessionChannelListener> getListeners()- Specified by:
getListenersin interfaceorg.cometd.bayeux.client.ClientSessionChannel
-
publish
- Specified by:
publishin interfaceorg.cometd.bayeux.client.ClientSessionChannel
-
publish
public void publish(org.cometd.bayeux.Message.Mutable message, org.cometd.bayeux.client.ClientSession.MessageListener callback)- Specified by:
publishin interfaceorg.cometd.bayeux.client.ClientSessionChannel
-
subscribe
public boolean subscribe(org.cometd.bayeux.Message.Mutable message, org.cometd.bayeux.client.ClientSessionChannel.MessageListener listener, org.cometd.bayeux.client.ClientSession.MessageListener callback)- Specified by:
subscribein interfaceorg.cometd.bayeux.client.ClientSessionChannel
-
sendSubscribe
protected void sendSubscribe(org.cometd.bayeux.Message.Mutable message, org.cometd.bayeux.client.ClientSessionChannel.MessageListener listener, org.cometd.bayeux.client.ClientSession.MessageListener callback) -
unsubscribe
public boolean unsubscribe(org.cometd.bayeux.Message.Mutable message, org.cometd.bayeux.client.ClientSessionChannel.MessageListener listener, org.cometd.bayeux.client.ClientSession.MessageListener callback)- Specified by:
unsubscribein interfaceorg.cometd.bayeux.client.ClientSessionChannel
-
sendUnSubscribe
protected void sendUnSubscribe(org.cometd.bayeux.Message.Mutable message, org.cometd.bayeux.client.ClientSession.MessageListener callback) -
unsubscribe
public void unsubscribe()- Specified by:
unsubscribein interfaceorg.cometd.bayeux.client.ClientSessionChannel
-
getSubscribers
- Specified by:
getSubscribersin interfaceorg.cometd.bayeux.client.ClientSessionChannel
-
release
public boolean release()- Specified by:
releasein interfaceorg.cometd.bayeux.client.ClientSessionChannel
-
isReleased
public boolean isReleased()- Specified by:
isReleasedin interfaceorg.cometd.bayeux.client.ClientSessionChannel
-
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(org.cometd.bayeux.client.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
-