public class ServerGroups
extends java.lang.Object
ChannelGroup and EventLoopGroup.| Constructor and Description |
|---|
ServerGroups(ConfigManager configManager)
Constructs a new
ServerGroups instance. |
| Modifier and Type | Method and Description |
|---|---|
io.netty.channel.EventLoopGroup |
getChildGroup()
Returns the client event loop group.
|
io.netty.channel.EventLoopGroup |
getServerGroup()
Returns the server event loop group.
|
void |
registerChannel(io.netty.channel.Channel channel)
Registers a channel to be tracked.
|
void |
reset()
Resets the
ServerGroups. |
void |
shutdown(boolean graceful)
Shutdowns all opened channels and event loops.
|
public ServerGroups(ConfigManager configManager)
ServerGroups instance.configManager - the configurationpublic final void reset()
ServerGroups.public void shutdown(boolean graceful)
graceful - ture for gracefully clean up the resourcespublic io.netty.channel.EventLoopGroup getServerGroup()
public io.netty.channel.EventLoopGroup getChildGroup()
public void registerChannel(io.netty.channel.Channel channel)
channel - a channel to be tracked