Class NettyUtils
- java.lang.Object
-
- org.pipecraft.pipes.async.inter.distributed.NettyUtils
-
public class NettyUtils extends Object
Utilities for generating Netty resources dependent on the operating system.- Author:
- Eyal Schneider
-
-
Constructor Summary
Constructors Constructor Description NettyUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Class<? extends io.netty.channel.socket.ServerSocketChannel>getServerSocketChanneClass()static Class<? extends io.netty.channel.socket.SocketChannel>getSocketChanneClass()static io.netty.channel.EventLoopGroupnewEventLoopGroup(int nThreads)
-
-
-
Method Detail
-
newEventLoopGroup
public static io.netty.channel.EventLoopGroup newEventLoopGroup(int nThreads)
- Parameters:
nThreads- The required number of threads in the group- Returns:
- A new
EventLoopGroup, suitable for the current OS.
-
getServerSocketChanneClass
public static Class<? extends io.netty.channel.socket.ServerSocketChannel> getServerSocketChanneClass()
- Returns:
- The server socket channel impl class suitable for the OS
-
getSocketChanneClass
public static Class<? extends io.netty.channel.socket.SocketChannel> getSocketChanneClass()
- Returns:
- The socket channel impl class suitable for the OS
-
-