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 java.lang.Object
implements org.cometd.bayeux.client.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

    org.cometd.bayeux.client.ClientSessionChannel.ClientSessionChannelListener, org.cometd.bayeux.client.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​(org.cometd.bayeux.ChannelId id)  
  • Method Summary

    Modifier and Type Method Description
    void addListener​(org.cometd.bayeux.client.ClientSessionChannel.ClientSessionChannelListener listener)  
    java.lang.String dump()  
    void dump​(java.lang.Appendable out, java.lang.String indent)  
    java.lang.Object getAttribute​(java.lang.String name)  
    java.util.Set<java.lang.String> getAttributeNames()  
    org.cometd.bayeux.ChannelId getChannelId()  
    java.lang.String getId()  
    java.util.List<org.cometd.bayeux.client.ClientSessionChannel.ClientSessionChannelListener> getListeners()  
    java.util.List<org.cometd.bayeux.client.ClientSessionChannel.MessageListener> getSubscribers()  
    boolean isBroadcast()  
    boolean isDeepWild()  
    boolean isMeta()  
    boolean isReleased()  
    boolean isService()  
    boolean isWild()  
    protected void notifyMessageListeners​(org.cometd.bayeux.Message message)  
    protected void notifyOnMessage​(org.cometd.bayeux.client.ClientSessionChannel.MessageListener listener, org.cometd.bayeux.Message message)  
    void publish​(java.lang.Object data)  
    void publish​(java.lang.Object data, org.cometd.bayeux.client.ClientSessionChannel.MessageListener callback)  
    void publish​(org.cometd.bayeux.Message.Mutable message, org.cometd.bayeux.client.ClientSessionChannel.MessageListener callback)  
    boolean release()  
    java.lang.Object removeAttribute​(java.lang.String name)  
    void removeListener​(org.cometd.bayeux.client.ClientSessionChannel.ClientSessionChannelListener listener)  
    protected void resetSubscriptions()  
    protected void sendSubscribe​(org.cometd.bayeux.client.ClientSessionChannel.MessageListener listener, org.cometd.bayeux.client.ClientSessionChannel.MessageListener callback)  
    protected void sendUnSubscribe​(org.cometd.bayeux.client.ClientSessionChannel.MessageListener callback)  
    void setAttribute​(java.lang.String name, java.lang.Object value)  
    void subscribe​(org.cometd.bayeux.client.ClientSessionChannel.MessageListener listener)  
    void subscribe​(org.cometd.bayeux.client.ClientSessionChannel.MessageListener listener, org.cometd.bayeux.client.ClientSessionChannel.MessageListener callback)  
    protected void throwIfReleased()  
    java.lang.String toString()  
    void unsubscribe()  
    void unsubscribe​(org.cometd.bayeux.client.ClientSessionChannel.MessageListener listener)  
    void unsubscribe​(org.cometd.bayeux.client.ClientSessionChannel.MessageListener listener, org.cometd.bayeux.client.ClientSessionChannel.MessageListener callback)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.cometd.bayeux.client.ClientSessionChannel

    getSession
  • Constructor Details

  • Method Details

    • getChannelId

      public org.cometd.bayeux.ChannelId getChannelId()
      Specified by:
      getChannelId in interface org.cometd.bayeux.Channel
    • addListener

      public void addListener​(org.cometd.bayeux.client.ClientSessionChannel.ClientSessionChannelListener listener)
      Specified by:
      addListener in interface org.cometd.bayeux.client.ClientSessionChannel
    • removeListener

      public void removeListener​(org.cometd.bayeux.client.ClientSessionChannel.ClientSessionChannelListener listener)
      Specified by:
      removeListener in interface org.cometd.bayeux.client.ClientSessionChannel
    • getListeners

      public java.util.List<org.cometd.bayeux.client.ClientSessionChannel.ClientSessionChannelListener> getListeners()
      Specified by:
      getListeners in interface org.cometd.bayeux.client.ClientSessionChannel
    • publish

      public void publish​(java.lang.Object data)
      Specified by:
      publish in interface org.cometd.bayeux.client.ClientSessionChannel
    • publish

      public void publish​(java.lang.Object data, org.cometd.bayeux.client.ClientSessionChannel.MessageListener callback)
      Specified by:
      publish in interface org.cometd.bayeux.client.ClientSessionChannel
    • publish

      public void publish​(org.cometd.bayeux.Message.Mutable message, org.cometd.bayeux.client.ClientSessionChannel.MessageListener callback)
      Specified by:
      publish in interface org.cometd.bayeux.client.ClientSessionChannel
    • subscribe

      public void subscribe​(org.cometd.bayeux.client.ClientSessionChannel.MessageListener listener)
      Specified by:
      subscribe in interface org.cometd.bayeux.client.ClientSessionChannel
    • subscribe

      public void subscribe​(org.cometd.bayeux.client.ClientSessionChannel.MessageListener listener, org.cometd.bayeux.client.ClientSessionChannel.MessageListener callback)
      Specified by:
      subscribe in interface org.cometd.bayeux.client.ClientSessionChannel
    • sendSubscribe

      protected void sendSubscribe​(org.cometd.bayeux.client.ClientSessionChannel.MessageListener listener, org.cometd.bayeux.client.ClientSessionChannel.MessageListener callback)
    • unsubscribe

      public void unsubscribe​(org.cometd.bayeux.client.ClientSessionChannel.MessageListener listener)
      Specified by:
      unsubscribe in interface org.cometd.bayeux.client.ClientSessionChannel
    • unsubscribe

      public void unsubscribe​(org.cometd.bayeux.client.ClientSessionChannel.MessageListener listener, org.cometd.bayeux.client.ClientSessionChannel.MessageListener callback)
      Specified by:
      unsubscribe in interface org.cometd.bayeux.client.ClientSessionChannel
    • sendUnSubscribe

      protected void sendUnSubscribe​(org.cometd.bayeux.client.ClientSessionChannel.MessageListener callback)
    • unsubscribe

      public void unsubscribe()
      Specified by:
      unsubscribe in interface org.cometd.bayeux.client.ClientSessionChannel
    • getSubscribers

      public java.util.List<org.cometd.bayeux.client.ClientSessionChannel.MessageListener> getSubscribers()
      Specified by:
      getSubscribers in interface org.cometd.bayeux.client.ClientSessionChannel
    • release

      public boolean release()
      Specified by:
      release in interface org.cometd.bayeux.client.ClientSessionChannel
    • isReleased

      public boolean isReleased()
      Specified by:
      isReleased in interface org.cometd.bayeux.client.ClientSessionChannel
    • resetSubscriptions

      protected void resetSubscriptions()
    • getId

      public java.lang.String getId()
      Specified by:
      getId in interface org.cometd.bayeux.Channel
    • isDeepWild

      public boolean isDeepWild()
      Specified by:
      isDeepWild in interface org.cometd.bayeux.Channel
    • isMeta

      public boolean isMeta()
      Specified by:
      isMeta in interface org.cometd.bayeux.Channel
    • isService

      public boolean isService()
      Specified by:
      isService in interface org.cometd.bayeux.Channel
    • isBroadcast

      public boolean isBroadcast()
      Specified by:
      isBroadcast in interface org.cometd.bayeux.Channel
    • isWild

      public boolean isWild()
      Specified by:
      isWild in interface org.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

      public void setAttribute​(java.lang.String name, java.lang.Object value)
      Specified by:
      setAttribute in interface org.cometd.bayeux.Channel
    • getAttribute

      public java.lang.Object getAttribute​(java.lang.String name)
      Specified by:
      getAttribute in interface org.cometd.bayeux.Channel
    • getAttributeNames

      public java.util.Set<java.lang.String> getAttributeNames()
      Specified by:
      getAttributeNames in interface org.cometd.bayeux.Channel
    • removeAttribute

      public java.lang.Object removeAttribute​(java.lang.String name)
      Specified by:
      removeAttribute in interface org.cometd.bayeux.Channel
    • throwIfReleased

      protected void throwIfReleased()
    • dump

      public java.lang.String dump()
      Specified by:
      dump in interface org.eclipse.jetty.util.component.Dumpable
    • dump

      public void dump​(java.lang.Appendable out, java.lang.String indent) throws java.io.IOException
      Specified by:
      dump in interface org.eclipse.jetty.util.component.Dumpable
      Throws:
      java.io.IOException
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object