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 TypeMethodDescriptionvoidaddChannel(io.netty.channel.Channel channel) Adds a channel to the repository.io.netty.channel.group.ChannelGroupReturns theChannelGroupused to store WebSocketSessions.voidremoveChannel(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 theChannelGroupused to store WebSocketSessions.- Returns:
- A
ChannelGroup
-