![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Netty 源码
君莫笑(๑˙ー˙๑)
欢迎互关,一起学习,共同进步
展开
-
Netty 源码阅读笔记(1) NioEventLoopGroup
目录类结构图1.1 构造方法1.1.1 newChild类结构图1.1 构造方法public NioEventLoopGroup() { this(0);}public NioEventLoopGroup(int nThreads) { this(nThreads, (Executor) null);}public NioEventLoopGroup(int nThreads, Executor executor) { this(nThreads, executo原创 2020-07-04 19:39:18 · 382 阅读 · 2 评论 -
Netty 源码阅读笔记(2)ThreadPerTaskExecutor
public final class ThreadPerTaskExecutor implements Executor { private final ThreadFactory threadFactory; public ThreadPerTaskExecutor(ThreadFactory threadFactory) { if (threadFactory == null) { throw new NullPointerException("原创 2020-07-04 15:32:46 · 511 阅读 · 0 评论 -
Netty 源码阅读笔记(3) NioEventLoop
目录类关系图3.1 构造方法3.2 run3.2.1 select3.2.2 processSelectedKeys类关系图3.1 构造方法NioEventLoop(NioEventLoopGroup parent, Executor executor, SelectorProvider selectorProvider, SelectStrategy strategy, RejectedExecutionHandler rejectedExecutionHandler)原创 2020-07-04 19:33:51 · 346 阅读 · 0 评论 -
Netty 源码阅读笔记(4) ServerBootStrap
目录类关系图4 bind4.1 initAndRegister4.1.1 newChannel4.1.2 init4.1.2.1 ServerBootstrapAcceptor类关系图4 bind类 AbstractBootstrappublic ChannelFuture bind() { validate(); SocketAddress localAddress = this.localAddress; if (localAddress == null) {原创 2020-07-05 17:34:28 · 365 阅读 · 0 评论 -
Netty 源码阅读笔记(5) NioServerSocketChannel
目录类关系图5.1 构造方法类关系图5.1 构造方法public NioServerSocketChannel() { this(newSocket(DEFAULT_SELECTOR_PROVIDER));}public NioServerSocketChannel(ServerSocketChannel channel) { //注册接收事件 super(null, channel, SelectionKey.OP_ACCEPT); config = ne原创 2020-07-04 21:03:56 · 268 阅读 · 0 评论 -
Netty 源码阅读笔记(6) DefaultChannelPipeline
目录类关系图6.1 构造方法6.1.1 TailContext6.1.2 HeadContext类关系图6.1 构造方法protected DefaultChannelPipeline(Channel channel) { this.channel = ObjectUtil.checkNotNull(channel, "channel"); succeededFuture = new SucceededChannelFuture(channel, null); voidPro原创 2020-07-04 21:01:34 · 363 阅读 · 0 评论