Package org.drasyl.util
Class EventLoopGroupUtil
java.lang.Object
org.drasyl.util.EventLoopGroupUtil
Utility class for operations on
EventLoopGroup
s.-
Method Summary
Modifier and TypeMethodDescriptionstatic Class<? extends io.netty.channel.socket.DatagramChannel>
static io.netty.channel.socket.DatagramChannel
getBestDatagramChannel
(io.netty.channel.socket.InternetProtocolFamily family) static io.netty.channel.EventLoopGroup
static io.netty.channel.EventLoopGroup
getBestEventLoopGroup
(int nThreads) static io.netty.channel.EventLoopGroup
getBestEventLoopGroup
(int nThreads, ThreadFactory threadFactory) static Class<? extends io.netty.channel.socket.ServerSocketChannel>
-
Method Details
-
getBestEventLoopGroup
public static io.netty.channel.EventLoopGroup getBestEventLoopGroup(int nThreads, ThreadFactory threadFactory) -
getBestEventLoopGroup
public static io.netty.channel.EventLoopGroup getBestEventLoopGroup(int nThreads) -
getBestEventLoopGroup
public static io.netty.channel.EventLoopGroup getBestEventLoopGroup() -
getBestDatagramChannel
-
getBestDatagramChannel
public static io.netty.channel.socket.DatagramChannel getBestDatagramChannel(io.netty.channel.socket.InternetProtocolFamily family) -
getServerSocketChannel
-