Interface WebSocketSessionRepository
-
public interface WebSocketSessionRepositoryDefines a ChannelGroup repository to handle WebSockets.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddChannel(io.netty.channel.Channel channel)Adds a channel to the repository.io.netty.channel.group.ChannelGroupgetChannelGroup()Returns theChannelGroupused to store WebSocketSessions.voidremoveChannel(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 theChannelGroupused to store WebSocketSessions.- Returns:
- A
ChannelGroup
-
-