程序包 cn.godmao.netty
类 NettyUtil
java.lang.Object
cn.godmao.netty.NettyUtil
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static io.netty.channel.ChannelFutureclose(io.netty.channel.Channel channel) static Class<? extends io.netty.channel.ServerChannel>static Class<? extends io.netty.channel.Channel>getSocketChannelClass(NTP ntp) static booleanisEpoll()static io.netty.channel.EventLoopGroupnewEventLoopGroup(int threadNum) static io.netty.channel.EventLoopGroupnewEventLoopGroup(int threadNum, String threadName) static io.netty.channel.EventLoopGroupnewEventLoopGroup(int threadNum, ThreadFactory threadFactory) static io.netty.channel.EventLoopGroupnewEventLoopGroup(String threadName) static ObjectsafeDuplicate(Object message) static io.netty.channel.ChannelFuture
-
构造器详细资料
-
NettyUtil
public NettyUtil()
-
-
方法详细资料
-
getSocketChannelClass
-
getServerSocketChannelClass
-
newEventLoopGroup
-
newEventLoopGroup
-
newEventLoopGroup
public static io.netty.channel.EventLoopGroup newEventLoopGroup(int threadNum) -
newEventLoopGroup
public static io.netty.channel.EventLoopGroup newEventLoopGroup(int threadNum, ThreadFactory threadFactory) -
isEpoll
public static boolean isEpoll() -
safeDuplicate
-
close
public static io.netty.channel.ChannelFuture close(io.netty.channel.Channel channel) -
send
public static io.netty.channel.ChannelFuture send(io.netty.channel.ChannelOutboundInvoker channel, Object message)
-