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
getBestEventLoopGroup
(int nThreads) static io.netty.channel.EventLoopGroup
getBestEventLoopGroup
(int nThreads, ThreadFactory threadFactory)
-
Method Details
-
getBestEventLoopGroup
public static io.netty.channel.EventLoopGroup getBestEventLoopGroup(int nThreads, ThreadFactory threadFactory) -
getBestEventLoopGroup
public static io.netty.channel.EventLoopGroup getBestEventLoopGroup(int nThreads) -
getBestDatagramChannel
-
getBestDatagramChannel
public static io.netty.channel.socket.DatagramChannel getBestDatagramChannel(io.netty.channel.socket.InternetProtocolFamily family)
-