Interface WebSocketSessionRepository


  • public interface WebSocketSessionRepository
    Defines a ChannelGroup repository to handle WebSockets.
    Since:
    1.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addChannel​(io.netty.channel.Channel channel)
      Adds a channel to the repository.
      io.netty.channel.group.ChannelGroup getChannelGroup()
      Returns the ChannelGroup used to store WebSocketSessions.
      void removeChannel​(io.netty.channel.Channel channel)
      Remove a channel from the repository.
    • Method Detail

      • addChannel

        void addChannel​(io.netty.channel.Channel channel)
        Adds a channel to the repository.
        Parameters:
        channel - The channel
      • removeChannel

        void removeChannel​(io.netty.channel.Channel channel)
        Remove a channel from the repository.
        Parameters:
        channel - The channel
      • getChannelGroup

        io.netty.channel.group.ChannelGroup getChannelGroup()
        Returns the ChannelGroup used to store WebSocketSessions.
        Returns:
        A ChannelGroup