Class WebsocketScopeManager.AbstractScope

java.lang.Object
org.apache.myfaces.push.cdi.WebsocketScopeManager.AbstractScope
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
WebsocketScopeManager.AbstractUserScope, WebsocketScopeManager.ApplicationScope
Enclosing class:
WebsocketScopeManager

public abstract static class WebsocketScopeManager.AbstractScope extends Object implements Serializable
See Also:
  • Field Details

    • channelTokens

      protected Map<String,List<WebsocketChannel>> channelTokens
      This map hold all tokens that are related to the current scope. This map use as key channel and as value channelTokens
  • Constructor Details

    • AbstractScope

      public AbstractScope()
  • Method Details

    • registerWebsocketSession

      public void registerWebsocketSession(String token, WebsocketChannelMetadata metadata)
    • isChannelAvailable

      public boolean isChannelAvailable(String channel)
      Indicate if the channel mentioned is valid for view scope. A channel is valid if there is at least one token that represents a valid connection to this channel.
      Parameters:
      channel -
      Returns:
    • getChannelTokens

      public List<String> getChannelTokens(String channel)
    • getChannelTokens

      public <S extends Serializable> List<String> getChannelTokens(String channel, S user)