类io.netty.channel.nio.NioEventLoop源码实例Demo

下面列出了怎么用io.netty.channel.nio.NioEventLoop的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: reactor-netty   文件: ReactorNetty.java
static boolean mustChunkFileTransfer(Connection c, Path file) {
	// if channel multiplexing a parent channel as an http2 stream
	if (c.channel().parent() != null && c.channel().parent().pipeline().get(Http2ConnectionHandler.class) != null) {
		return true;
	}
	ChannelPipeline p = c.channel().pipeline();
	return p.get(SslHandler.class) != null  ||
			p.get(NettyPipeline.CompressionHandler) != null ||
			(!(c.channel().eventLoop() instanceof NioEventLoop) &&
					!"file".equals(file.toUri().getScheme()));
}
 
源代码2 项目: kcp-netty   文件: UkcpClientChannel.java
@Override
protected boolean isCompatible(EventLoop loop) {
    return loop instanceof NioEventLoop;
}
 
源代码3 项目: kcp-netty   文件: UkcpServerChildChannel.java
@Override
protected boolean isCompatible(EventLoop loop) {
    return loop instanceof NioEventLoop;
}
 
 类所在包
 同包方法