Interface WebSocketSessionRepository

All Known Subinterfaces:
NettyEmbeddedServer
All Known Implementing Classes:
NettyHttpServer

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

    Modifier and Type
    Method
    Description
    void
    addChannel(io.netty.channel.Channel channel)
    Adds a channel to the repository.
    io.netty.channel.group.ChannelGroup
    Returns the ChannelGroup used to store WebSocketSessions.
    void
    removeChannel(io.netty.channel.Channel channel)
    Remove a channel from the repository.
  • Method Details

    • 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