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 protected
AbstractSessionChannel(ChannelId id)
-
Method Summary
-
Constructor Details
-
Method Details
-
getChannelId
- Specified by:
getChannelId
in interfaceChannel
-
addListener
- Specified by:
addListener
in interfaceClientSessionChannel
-
removeListener
- Specified by:
removeListener
in interfaceClientSessionChannel
-
getListeners
- Specified by:
getListeners
in interfaceClientSessionChannel
-
publish
- Specified by:
publish
in interfaceClientSessionChannel
-
publish
- Specified by:
publish
in interfaceClientSessionChannel
-
publish
- Specified by:
publish
in interfaceClientSessionChannel
-
subscribe
- Specified by:
subscribe
in interfaceClientSessionChannel
-
subscribe
public void subscribe(ClientSessionChannel.MessageListener listener, ClientSessionChannel.MessageListener callback)- Specified by:
subscribe
in interfaceClientSessionChannel
-
sendSubscribe
protected void sendSubscribe(ClientSessionChannel.MessageListener listener, ClientSessionChannel.MessageListener callback) -
unsubscribe
- Specified by:
unsubscribe
in interfaceClientSessionChannel
-
unsubscribe
public void unsubscribe(ClientSessionChannel.MessageListener listener, ClientSessionChannel.MessageListener callback)- Specified by:
unsubscribe
in interfaceClientSessionChannel
-
sendUnSubscribe
-
unsubscribe
public void unsubscribe()- Specified by:
unsubscribe
in interfaceClientSessionChannel
-
getSubscribers
- Specified by:
getSubscribers
in interfaceClientSessionChannel
-
release
public boolean release()- Specified by:
release
in interfaceClientSessionChannel
-
isReleased
public boolean isReleased()- Specified by:
isReleased
in interfaceClientSessionChannel
-
resetSubscriptions
protected void resetSubscriptions() -
getId
-
isDeepWild
public boolean isDeepWild()- Specified by:
isDeepWild
in interfaceChannel
-
isMeta
public boolean isMeta() -
isService
public boolean isService() -
isBroadcast
public boolean isBroadcast()- Specified by:
isBroadcast
in interfaceChannel
-
isWild
public boolean isWild() -
notifyMessageListeners
-
notifyOnMessage
-
setAttribute
- Specified by:
setAttribute
in interfaceChannel
-
getAttribute
- Specified by:
getAttribute
in interfaceChannel
-
getAttributeNames
- Specified by:
getAttributeNames
in interfaceChannel
-
removeAttribute
- Specified by:
removeAttribute
in interfaceChannel
-
throwIfReleased
protected void throwIfReleased() -
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
-